https://github.com/emrahcom/mydaemon
Python3 daemon module
https://github.com/emrahcom/mydaemon
daemon module python python3
Last synced: 8 months ago
JSON representation
Python3 daemon module
- Host: GitHub
- URL: https://github.com/emrahcom/mydaemon
- Owner: emrahcom
- License: mit
- Created: 2015-03-03T19:32:53.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-08-20T10:01:10.000Z (over 6 years ago)
- Last Synced: 2025-04-15T22:35:12.397Z (8 months ago)
- Topics: daemon, module, python, python3
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
About
=====
Python3 daemon module
Table of contents
=================
- [About](#about)
- [Installation](#installation)
- [Examples](#examples)
- [Daemon](#daemon)
- [Background process](#background-process)
Installation
============
```bash
pip3 install mydaemon
```
Examples
========
Daemon
------
See [sample Python script](/examples/myservice.py) which run as a service (daemon)
```bash
python3 myservice.py start
python3 myservice.py restart
python3 myservice.py stop
```
Background process
------------------
See [sample Python script](/examples/myproc.py) which run as a background process.
Use "stop" parameter to force to stop.
```bash
python3 myproc.py start 1
python3 myproc.py start 2
python3 myproc.py start 3
python3 myproc.py stop 2
```