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

https://github.com/polettix/daemovise

supervise from a daemon
https://github.com/polettix/daemovise

Last synced: 2 months ago
JSON representation

supervise from a daemon

Awesome Lists containing this project

README

        

# daemovise

Supervise from a daemon

# USAGE

daemovise [--usage] [--help] [--man] [--version]

daemovise [--append|--no-append]
[--dir|-d directory]
[--outputs|O filename]
[--pidfile|-p filename]
[--stderr|--err|-e filename]
[--stdout|--out|-o filename]
[--timeout|-t timeout]
[--umask|-u umask]
[--] command [arg [arg...]]

# EXAMPLES

# write both stdout and stderr in sample.log
# save PID in sample.pid for later reuse (sending commands)
# set a timeout of 10 seconds for child to honor a TERM request
shell$ daemovise -O sample.log -p sample.pid ./sample.sh -t 10

# send HUP, this makes it possible to e.g. rotate logs.
# HUP signal is propagated down to child, if it does not handle it
# then it will exit and will be restarted by daemovise
shell$ mv sample.log sample.log.1
shell$ kill -HUP $(