|
From: Andy R. <ac...@gm...> - 2014-11-12 19:16:14
|
On Wed, Nov 12, 2014 at 12:12 PM, Andy Ruhl <ac...@gm...> wrote: > > On Wed, Nov 12, 2014 at 11:45 AM, Oliver Gorwits <ol...@cp...> 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 |