{"id":38539288,"url":"https://github.com/ogarcia/sysdweb","last_synced_at":"2026-01-17T07:07:28.778Z","repository":{"id":13299754,"uuid":"74146657","full_name":"ogarcia/sysdweb","owner":"ogarcia","description":"Control systemd services through Web or REST API","archived":false,"fork":false,"pushed_at":"2025-07-10T10:37:01.000Z","size":466,"stargazers_count":90,"open_issues_count":0,"forks_count":20,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-08-27T00:58:37.908Z","etag":null,"topics":["admin-tool","control","journal","rest","rest-api","systemd","webapp"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/sysdweb/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ogarcia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-18T16:22:29.000Z","updated_at":"2025-07-11T10:05:55.000Z","dependencies_parsed_at":"2022-08-07T07:15:11.921Z","dependency_job_id":null,"html_url":"https://github.com/ogarcia/sysdweb","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ogarcia/sysdweb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogarcia%2Fsysdweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogarcia%2Fsysdweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogarcia%2Fsysdweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogarcia%2Fsysdweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ogarcia","download_url":"https://codeload.github.com/ogarcia/sysdweb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ogarcia%2Fsysdweb/sbom","scorecard":{"id":703173,"data":{"date":"2025-08-11","repo":{"name":"github.com/ogarcia/sysdweb","commit":"5990148050af342a91f34faa010956a70bda0422"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":3,"reason":"2 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ogarcia/sysdweb/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ogarcia/sysdweb/python-publish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:20","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:21","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T05:42:45.370Z","repository_id":13299754,"created_at":"2025-08-22T05:42:45.370Z","updated_at":"2025-08-22T05:42:45.370Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28503053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin-tool","control","journal","rest","rest-api","systemd","webapp"],"created_at":"2026-01-17T07:07:24.225Z","updated_at":"2026-01-17T07:07:28.763Z","avatar_url":"https://github.com/ogarcia.png","language":"Python","readme":"# sysdweb\nControl systemd services through Web or REST API\n\n## Installation\n\n### Prerequisites\n\nIf you are a Ubuntu/Debian user you need to install `libsystemd-dev`, for\nCentOS users the package is `systemd-devel`.\n\n### From source\n\n```sh\ngit clone https://github.com/ogarcia/sysdweb.git\nvirtualenv3 ./sysdweb-venv\nsource ./sysdweb-venv/bin/activate\ncd sysdweb\npip install .\n```\n\n### From pypi\n\n```sh\nvirtualenv3 ./sysdweb-venv\nsource ./sysdweb-venv/bin/activate\npip install sysdweb\n```\n\n### For Arch Linux users\n\nArch Linux users can install sysdweb from [AUR][1].\n\n## Run\n\nFirst take a look to `sysdweb.conf` file to configure sysdweb. Is self\nexplanatory.\n\nYou can place `sysdweb.conf` in `/etc` for system, in user home\n`~/.config/sysdweb/sysdweb.conf` or in same directory where you run sysdweb.\n\nOnce you have configured sysdweb, simply run.\n\n```\nsysdweb\n```\n\nBy default sysdweb listen in 10088 port to 127.0.0.1, you can change listen\nport and address with `-p` and `-l` or via environment variables.\n\n```sh\nsysdweb -p 9080 -l 0.0.0.0\n```\n\nCurrent config environment variables are the following.\n\n| Variable | Description |\n| --- | --- |\n| `SYSDWEB_CONFIG` | Config file location |\n| `SYSDWEB_HOST` | Listen address |\n| `SYSDWEB_PORT` | Listen port |\n| `SYSDWEB_LOGLEVEL` | Log level, effective values are `WARNING`, `INFO` and `DEBUG` |\n\n## API\n\nYou can control configured services via REST API, for example, with curl.\n\nThe API endpoint is `/api/v1/\u003cservice\u003e/\u003caction\u003e`, always `GET` and response\na json with following format.\n\n```json\n{\n  \"\u003caction\u003e\": \"\u003cresult\u003e\"\n}\n```\n\nThe `\u003cservice\u003e` tag is defined in config file and match with section label.\nFor example, in following config, the service would be `ngx`.\n\n```ini\n[ngx]\ntitle = Nginx\nunit = nginx.service\n```\n\nThe posible `\u003cactions\u003e` are.\n\n* start\n* stop\n* restart\n* reload\n* reloadorrestart\n* status\n* journal\n\nAll actions (except `status` and `journal`) return as result `OK` if can\ncommunicate with DBUS or `Fail` if any error occurs.\n\nFor `status` action, the posible responses are.\n\n* active (started unit)\n* reloading\n* inactive (stopped unit)\n* failed (stopped unit)\n* activating\n* deactivating\n* not-found (for inexistent unit)\n\nBy default `/api/v1/\u003cservice\u003e/journal` returns 100 tail lines of journal\nfile of `\u003cservice\u003e` unit. You can specify the number of lines by this way.\n\n```\n/api/v1/\u003cservice\u003e/journal/200\n```\n\nIn the example defined above all valid endpoints are.\n\n```\nhttp://127.0.0.1:10088/api/v1/ngx/start\nhttp://127.0.0.1:10088/api/v1/ngx/stop\nhttp://127.0.0.1:10088/api/v1/ngx/restart\nhttp://127.0.0.1:10088/api/v1/ngx/reload\nhttp://127.0.0.1:10088/api/v1/ngx/reloadorrestart\nhttp://127.0.0.1:10088/api/v1/ngx/status\nhttp://127.0.0.1:10088/api/v1/ngx/journal\nhttp://127.0.0.1:10088/api/v1/ngx/journal/\u003cnumber\u003e\n```\n\n[1]: https://aur.archlinux.org/packages/sysdweb/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogarcia%2Fsysdweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fogarcia%2Fsysdweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogarcia%2Fsysdweb/lists"}