Skip to main content

Create daemons from commands

Project description

Introduction

“daemonmgr” is a shell script launching a python program allowing to manage daemons on your system.

Installation

Install, upgrade and uninstall daemonmgr with the following commands:

$ pip install daemonmgr
$ pip install --upgrade daemonmgr
$ pip uninstall daemonmgr

Dependencies

None

Documentation

There is no specific documentation for daemonmgr except the examples below.

Examples

Registering a daemon.

A name (an id) must be given to the daemon. In addition, the command to be launched must be provided as well as standard output and error redirections

$ daemonmgr -register --daemon sample_daemon --stdout /tmp/sample_daemon.out --stderr /tmp/sample_daemon.err --command "sleep 100" --name "sleep 100"

Listing all daemons

$ daemonmgr -list

Listing a particular daemon

$ daemonmgr -list --daemon sample_daemon

Unregistering a daemon

$ daemonmgr -unregister --daemon sample_daemon

Starting a daemon

$ daemonmgr -start --daemon sample_daemon

Stopping a daemon

$ daemonmgr -stop --daemon sample_daemon

Restarting a daemon

$ daemonmgr -restart --daemon sample_daemon

Checking the status of a particular daemon

$ daemonmgr -status --daemon sample_daemon

Checking the status of all registered daemons

$ daemonmgr -status

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
daemonmgr-0.0.12.tar.gz (3.2 kB) Copy SHA256 hash SHA256 Source None Aug 25, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page