Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```