Daemon-Control/t/bin/04_show_warnings.pl
2012-09-08 16:14:57 -07:00

22 lines
540 B
Perl

#!/usr/bin/perl
use warnings;
use strict;
use Daemon::Control;
Daemon::Control->new({
name => "My Daemon",
lsb_start => '$syslog $remote_fs',
lsb_stop => '$syslog',
lsb_sdesc => 'My Daemon Short',
lsb_desc => 'My Daemon controls the My Daemon daemon.',
path => '/usr/sbin/mydaemon/init.pl',
program => sub { 1 },
program_args => [ ],
redirect_before_fork => 0,
pid_file => '/dev/null', # I don't want to leave tmp files for testing.
fork => 2,
})->run;