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: 7 months 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T12:57:44.000Z (about 5 years ago)
- Last Synced: 2024-11-23T12:49:14.493Z (8 months 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
```