Re: Starting a service on boot

2007-03-05 Thread Robert Huff
Derek Ragona writes: > In most cases you want the service to write the PID to a file in > /var/log so only one instance is started. Ins't the canonical location for this "/var/run"? Robert Huff ___ freebsd-qu

Re: Starting a service on boot

2007-03-05 Thread Derek Ragona
rc scripts should accept a few arguments: start stop restart You can usually find one in /usr/local/etc/rc.d to copy from. In most cases you want the service to write the PID to a file in /var/log so only one instance is started. Also be sure you use full pathnames in your scripts, don't assu

RE: Starting a service on boot

2007-03-05 Thread Jean-Philippe Daigle
> -Original Message- > From: Jerry McAllister [mailto:[EMAIL PROTECTED] > Sent: Monday, March 05, 2007 10:44 AM > To: Jean-Philippe Daigle > Cc: freebsd-questions@freebsd.org > Subject: Re: Starting a service on boot > > On Mon, Mar 05, 2007 at 09:37:54AM -0500, Je

Re: Starting a service on boot

2007-03-05 Thread Jerry McAllister
On Mon, Mar 05, 2007 at 09:37:54AM -0500, Jean-Philippe Daigle wrote: > Hello, > > I'm attempting to add a new program to the list of services starting at > boot time on FreeBSD 6.1. Unfortunately, although running the script > directly as root starts it up just fine, it's not starting at boot ti

Re: Starting a service on boot

2007-03-05 Thread Roland Smith
On Mon, Mar 05, 2007 at 09:37:54AM -0500, Jean-Philippe Daigle wrote: > Hello, > > I'm attempting to add a new program to the list of services starting at > boot time on FreeBSD 6.1. Unfortunately, although running the script > directly as root starts it up just fine, it's not starting at boot tim

RE: Starting a service on boot

2007-03-05 Thread Jean-Philippe Daigle
> -Original Message- > From: [EMAIL PROTECTED] [mailto:owner-freebsd- > [EMAIL PROTECTED] On Behalf Of Chris Slothouber > Sent: Monday, March 05, 2007 10:05 AM > To: FreeBSD-questions@FreeBSD.org > Subject: Re: Starting a service on boot > > Perhaps you could

Re: Starting a service on boot

2007-03-05 Thread Chris Slothouber
From: [EMAIL PROTECTED] [mailto:owner-freebsd- [EMAIL PROTECTED] On Behalf Of Chris Slothouber Sent: Monday, March 05, 2007 9:53 AM To: FreeBSD-questions@FreeBSD.org Subject: Re: Starting a service on boot I think you need to call it cc.sh And make sure it's +x Thanks, the script is definitely

RE: Starting a service on boot

2007-03-05 Thread Jean-Philippe Daigle
> -Original Message- > From: [EMAIL PROTECTED] [mailto:owner-freebsd- > [EMAIL PROTECTED] On Behalf Of Chris Slothouber > Sent: Monday, March 05, 2007 9:53 AM > To: FreeBSD-questions@FreeBSD.org > Subject: Re: Starting a service on boot > > I think you need to

Re: Starting a service on boot

2007-03-05 Thread Chris Slothouber
I think you need to call it cc.sh And make sure it's +x Jean-Philippe Daigle wrote: Hello, I'm attempting to add a new program to the list of services starting at boot time on FreeBSD 6.1. Unfortunately, although running the script directly as root starts it up just fine, it's not starting at b

Starting a service on boot

2007-03-05 Thread Jean-Philippe Daigle
Hello, I'm attempting to add a new program to the list of services starting at boot time on FreeBSD 6.1. Unfortunately, although running the script directly as root starts it up just fine, it's not starting at boot time. I've found documentation that says there are two basic steps to follow: 1) C