Skip to main content

python daemon tool.

Project description

via pip

pip3 install apdaemon

example:

from apdaemon.daemon import daemon

@daemon(service="maind")
def main():
    import time
    while True:
        print("hello world")
        time.sleep(3)

if __name__ == '__main__':
    main()

run command: python3 daemon.py [start[default]|status|stop|restart]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apdaemon-0.2.5.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

apdaemon-0.2.5-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page