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
- Host: GitHub
- URL: https://github.com/polettix/daemovise
- Owner: polettix
- Created: 2015-05-26T16:03:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-27T12:31:28.000Z (about 10 years ago)
- Last Synced: 2025-02-07T18:53:24.016Z (4 months ago)
- Language: Perl
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 $(