Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Daemon-Control CPAN distribution.

Report information
The Basics
Id: 104222
Status: open
Priority: 0/
Queue: Daemon-Control

People
Owner: symkat [...] cpan.org
Requestors: hugh.barnard [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.001005



Subject: Missing {} in main example
Date: Tue, 5 May 2015 09:05:14 +0100
To: bug-Daemon-Control [...] rt.cpan.org
From: Hugh Barnard <hugh.barnard [...] gmail.com>
Hi folks The main examples in both cpan and meta need {} round the parameters. As a lazy person, I cut and paste examples for any 'new' thing, this foxed me for a couple of hours. It'll really hurt less experienced people, a barrier for an excellent module, thanks! Best regards Hugh Barnard -- http://www.hughbarnard.org http://www.twitter.com/hughbarnard http://www.big-wave-heuristics.com/ <http://www.hackney-environment-network.org.uk/>
On Tue May 05 04:05:25 2015, hugh.barnard@gmail.com wrote: Show quoted text
> 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 ]
Subject: Re: [rt.cpan.org #104222] Missing {} in main example
Date: Thu, 30 Jul 2015 08:32:42 +0100
To: bug-Daemon-Control [...] rt.cpan.org
From: Hugh Barnard <hugh.barnard [...] gmail.com>
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/>
Daemon::Control accepts a list and hashref form of->new() as of 0.001005, initially it accepted only hashref ->new({}). This change happened in Dec 2013, shown here: https://github.com/symkat/Daemon-Control/commit/0021b4eb9db11caf64b0592fd13c1a14981b52f1 If either ->new() or ->new({}) is failing for you, please check the version of Daemon::Control on your system (`perl -MDaemon::Control\ 999` will tell you your version of Daemon::Control). If it's previous to 0.001005, it is expected behavior for ->new() to fail without a hashref and the documentation for your version should reflect that. To access documentation for your locally installed perl modules, please try `perldoc Daemon::Control` in a terminal. If you are running a version of Daemon::Control previous to 0.001005, you may consider upgrading, otherwise please prefer to the documentation on your version of Daemon::Control.
Subject: Re: [rt.cpan.org #104222] Missing {} in main example
Date: Sun, 2 Aug 2015 09:51:18 +0100
To: bug-Daemon-Control [...] rt.cpan.org
From: Hugh Barnard <hugh.barnard [...] gmail.com>
Thanks, I've been using repositories to load modules onto a Raspberry Pi. So the one I'm using may not be that fresh. The important thing is that this should 'work as advertised'. Best regards Hugh On 30 July 2015 at 15:25, symkat via RT <bug-Daemon-Control@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=104222 > > > Daemon::Control accepts a list and hashref form of->new() as of 0.001005, > initially it accepted only hashref ->new({}). This change happened in Dec > 2013, shown here: > https://github.com/symkat/Daemon-Control/commit/0021b4eb9db11caf64b0592fd13c1a14981b52f1 > > If either ->new() or ->new({}) is failing for you, please check the > version of Daemon::Control on your system (`perl -MDaemon::Control\ 999` > will tell you your version of Daemon::Control). If it's previous to > 0.001005, it is expected behavior for ->new() to fail without a hashref and > the documentation for your version should reflect that. To access > documentation for your locally installed perl modules, please try `perldoc > Daemon::Control` in a terminal. > > If you are running a version of Daemon::Control previous to 0.001005, you > may consider upgrading, otherwise please prefer to the documentation on > your version of Daemon::Control. > >
-- http://www.hughbarnard.org http://www.twitter.com/hughbarnard http://www.big-wave-heuristics.com/ <http://www.hackney-environment-network.org.uk/>