Perl — запуск, остановка, перезапуск скрипта

Daemon::Generic — framework to provide start/stop/reload for a daemon

Usage: $progname [ -c file ] [ -f ] { start | stop | reload | restart | help | version | check }
-c Specify configuration file (defaults to $configfile)
-f Run in the foreground (don’t detach)
start Starts a new $progname if there isn’t one running already
stop Stops a running $progname
reload Causes a running $progname to reload it’s config file. Starts
a new one if none is running.
restart Stops a running $progname if one is running. Starts a new one.
check Check the configuration file and report the daemon state
help Display this usage info
version Display the version of $progname

Leave a Reply