exit 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 => '/home/symkat/etc/init.d/program',
program => '/home/symkat/bin/program',
program_args => [ '-a', 'orange', '--verbose' ],
pid_file => '/tmp/mydaemon.pid',
stderr_file => '/tmp/mydaemon.out',
stdout_file => '/tmp/mydaemon.out',
fork => 2,
)
needs to be, this:
exit 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 => '/home/symkat/etc/init.d/program',
program => '/home/symkat/bin/program',
program_args => [ '-a', 'orange', '--verbose' ],
pid_file => '/tmp/mydaemon.pid',
stderr_file => '/tmp/mydaemon.out',
stdout_file => '/tmp/mydaemon.out',
fork => 2,
})
On 29 July 2015 at 17:18, Zoffix Znet via RT <bug-Daemon-Control@rt.cpan.org
Show quoted text> wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=104222 >
>
> On Tue May 05 04:05:25 2015, hugh.barnard@gmail.com wrote:
> > The main examples in both cpan and meta need {} round the parameters.
>
> Hi. Would you be able to clarify what you mean? Are you talking about
> Daemon::Control->new() in the SYNOPSIS? It doesn't need the curly braces
> around the parameters, although you may use them if you wish.
>
> If the problem is still there, would you, please, provide a test code that
> fails? Thanks.
>
>
> --
>
> Cheers,
> ZZ [
https://metacpan.org/author/ZOFFIX ]
>
--
http://www.hughbarnard.org
http://www.twitter.com/hughbarnard
http://www.big-wave-heuristics.com/
<
http://www.hackney-environment-network.org.uk/>