Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ewen-lbh/python-initsystem
An init-system-agnostic way to start, stop and check statuses of services
https://github.com/ewen-lbh/python-initsystem
Last synced: 21 days ago
JSON representation
An init-system-agnostic way to start, stop and check statuses of services
- Host: GitHub
- URL: https://github.com/ewen-lbh/python-initsystem
- Owner: ewen-lbh
- Created: 2020-05-04T13:03:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T12:57:44.000Z (over 4 years ago)
- Last Synced: 2024-10-16T09:27:10.809Z (28 days ago)
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Manage services.
Supports SystemV init or systemd.## Installation
Available [on PyPI](https://pypi.org/project/initsystem):
```
pip install initsystem
```## Example
```python
>>> from initsystem import Service
>>> couchdb = Service('couchdb')
>>> couchdb.is_running()
False
>>> couchdb.start()
>>> couchdb.is_running()
True
>>> couchdb.stop()
>>> couchdb.is_running()
False
```