Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: autostart netdisco-web and netdisco-daemon (Andy Ruhl)
   2. Re: autostart netdisco-web and netdisco-daemon (Keith Shannon)
   3. Re: autostart netdisco-web and netdisco-daemon (Oliver Gorwits)
   4. Re: autostart netdisco-web and netdisco-daemon (Andy Ruhl)
   5. Re: autostart netdisco-web and netdisco-daemon (Andy Ruhl)
--- Begin Message ---
On Tue, Nov 11, 2014 at 4:29 PM, Golden, Scott <scott.gol...@globe.com>
wrote:

> hi all
>
> how do make it so netdisco auto starts when system is rebooted
>
>
> This should do it if you're using version 2:

https://metacpan.org/pod/distribution/App-Netdisco/lib/App/Netdisco/Manual/Deployment.pod

Andy

--- End Message ---
--- Begin Message ---
It’s in the documentation.

https://metacpan.org/pod/App::Netdisco::Manual::Deployment#Init-and-Run-Control-Scripts

It can generate your init scripts so you can set the proper run level for it to 
start at. All though it does appear there may be issues with BSD.

Regards,
Keith

From: Andy Ruhl [mailto:acr...@gmail.com]
Sent: Tuesday, November 11, 2014 4:41 PM
To: Golden, Scott
Cc: netdisco-users@lists.sourceforge.net
Subject: Re: [Netdisco] autostart netdisco-web and netdisco-daemon

On Tue, Nov 11, 2014 at 4:29 PM, Golden, Scott 
<scott.gol...@globe.com<mailto:scott.gol...@globe.com>> wrote:
hi all
how do make it so netdisco auto starts when system is rebooted

This should do it if you're using version 2:

https://metacpan.org/pod/distribution/App-Netdisco/lib/App/Netdisco/Manual/Deployment.pod
Andy

________________________________

IMPORTANT: This email message is intended only for the use of the individual to 
whom, or entity to which, it is addressed and may contain information that is 
privileged, confidential and exempt from disclosure under applicable law. If 
you are NOT the intended recipient, you are hereby notified that any use, 
dissemination, distribution or copying of this communication is strictly 
prohibited. If you have received this communication in error, please reply to 
the sender immediately and permanently delete this email. Thank you.

--- End Message ---
--- Begin Message ---
On 2014-11-12 14:12, Keith Shannon wrote:
It can generate your init scripts so you can set the proper run level
for it to start at. All though it does appear there may be issues with
BSD.

Yep. The script should work fine under BSD (start, stop, etc) but just is missing the magical headers (comments) to tell BSD the run levels and dependencies.

regards,
oliver.



--- End Message ---
--- Begin Message ---
On Wed, Nov 12, 2014 at 11:45 AM, Oliver Gorwits <oli...@cpan.org> wrote:

> On 2014-11-12 14:12, Keith Shannon wrote:
> > It can generate your init scripts so you can set the proper run level
> > for it to start at. All though it does appear there may be issues
> > with
> > BSD.
>
> Yep. The script should work fine under BSD (start, stop, etc) but just
> is missing the magical headers (comments) to tell BSD the run levels and
> dependencies.
>

BSD doesn't have runlevels, heh.

Probably a reasonable way to do it would be to put the init scripts into
/etc/rc.local at the bottom, something like this:

if [ -x /home/netdisco/perl5/bin/netdisco-daemon ];
then
    /home/netdisco/perl5/bin/netdisco-daemon start
else
    echo "Required program /home/netdisco/perl5/bin/netdisco-daemon not
found!"
    exit 1;
fi

if [ -x /home/netdisco/perl5/bin/netdisco-web ];
then
    /home/netdisco/perl5/bin/netdisco-web start
else
    echo "Required program /home/netdisco/perl5/bin/netdisco-web not found!"
    exit 1;
fi

(Adjust for your setup, obviously.)

Andy

--- End Message ---
--- Begin Message ---
On Wed, Nov 12, 2014 at 12:12 PM, Andy Ruhl <acr...@gmail.com> wrote:

>
> On Wed, Nov 12, 2014 at 11:45 AM, Oliver Gorwits <oli...@cpan.org> wrote:
>
>> On 2014-11-12 14:12, Keith Shannon wrote:
>> > It can generate your init scripts so you can set the proper run level
>> > for it to start at. All though it does appear there may be issues
>> > with
>> > BSD.
>>
>> Yep. The script should work fine under BSD (start, stop, etc) but just
>> is missing the magical headers (comments) to tell BSD the run levels and
>> dependencies.
>>
>
> BSD doesn't have runlevels, heh.
>
> Probably a reasonable way to do it would be to put the init scripts into
> /etc/rc.local at the bottom, something like this:
>
> if [ -x /home/netdisco/perl5/bin/netdisco-daemon ];
> then
>     /home/netdisco/perl5/bin/netdisco-daemon start
> else
>     echo "Required program /home/netdisco/perl5/bin/netdisco-daemon not
> found!"
>     exit 1;
> fi
>
> if [ -x /home/netdisco/perl5/bin/netdisco-web ];
> then
>     /home/netdisco/perl5/bin/netdisco-web start
> else
>     echo "Required program /home/netdisco/perl5/bin/netdisco-web not
> found!"
>     exit 1;
> fi
>
> (Adjust for your setup, obviously.)
>
>
By the way, a small bit of trivia if anyone didn't know...

If you want to know what this is:

if [ -x .....

Do "man test".

Fun stuff.

Andy

--- End Message ---
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to