Ubic::Service::SimpleDaemon - variant of service when your service is simple daemonized binary
version 1.29
use Ubic::Service::SimpleDaemon; my $service = Ubic::Service::SimpleDaemon->new( 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. Don't set it unless you know what you're doing.
User under which daemon will be started. Optional, default is root.
root
Group under which daemon will be started. Optional, default is all user groups.
Value can be scalar or arrayref.
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 Matyukhin <mmcleric@yandex-team.ru>
This software is copyright (c) 2011 by Yandex LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
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.