The main goal of Proc::Daemontools is to start/stop the daemons managed by Daemontools, what is done internally with the 'svc' command using the options '-u' and '-d'. If you´re not using these default directories you can specify them explicilty within the new() function. The directory monitored by supervise to start/stop The directory containing svc, svstat, supervise, etc It assumes 2 default directories: /usr/local/bin It won´t even instantiate its object if it can´t find the Daemontools executables.
Proc::Daemontools requires that the Daemontools package be installed on your machine in order to function. Daemontools was written by Dan Bernstein and is intended to control Unix/Linux daemons. This module is a Perl interface for Daemontools package. # Let´s set the default daemon to be qmail-smtpd # We want to stop $daemon instead of the default daemon My $svc = new Proc::Daemontools # default directories assumedĭAEMONTOOLS_DIR => '/some-non-default-dir',ĭAEMON => 'daemon-name' # optional: a default daemon Proc::Daemontools - Perl interface for the functionalities of Daemontools SYNOPSIS use Proc::Daemontools