Ubic::Service::SimpleDaemon - variant of service when your service is simple daemonized binary
version 1.10
use Ubic::Service::SimpleDaemon; my $service = Ubic::Service::SimpleDaemon->new({ name => "sleep", bin => "sleep 1000", });
Unlike Ubic::Service::Common, this class allows you to specify only name and binary of your service.
Constructor.
Parameters:
Daemon binary.
Service's name. Optional, will usually be set by upper-level multiservice.
User under which daemon will be started. Optional, default is root.
root
File into which daemon's stdout will be redirected. Default is /dev/null.
/dev/null
File into which daemon's stderr will be redirected. Default is /dev/null.
Get pid filename. It will be concatenated from simple-daemon pid dir and service's name.
Ubic::Daemon - module to daemonize any binary
Vyacheslav Matjukhin <mmcleric@yandex-team.ru>
To install Ubic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ubic
CPAN shell
perl -MCPAN -e shell install Ubic
For more information on module installation, please visit the detailed CPAN module installation guide.