Starting a service on boot
Jean-Philippe Daigle
jean.daigle at SolaceSystems.com
Mon Mar 5 15:13:41 UTC 2007
> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org [mailto:owner-freebsd-
> questions at freebsd.org] On Behalf Of Chris Slothouber
> Sent: Monday, March 05, 2007 10:05 AM
> To: FreeBSD-questions at FreeBSD.org
> Subject: Re: Starting a service on boot
>
> Perhaps you could put a debug point in the script to ensure it is
being
> started (e.g. touch a file or echo something to the terminal), and if
it
> is indeed being run by rc, move the point until you find out where
it's
> breaking?
Thanks for the suggestion! I did, and it really looks like the script
never gets started.
Permissions:
(/etc/rc.d)$ ls -l cc.sh
-rwxr-xr-x 1 root wheel 246 Mar 5 10:11 cc.sh
Script contents:
(/etc/rc.d)$ cat cc.sh
#!/bin/sh
#
# PROVIDE: cc
# REQUIRE: DAEMON
. /etc/rc.subr
touch /tmp/quuuuuuux
name="cc"
rcvar=`set_rcvar`
command="/home/<blah>/cruisecontrol/cruisecontrol.sh"
command_args="&"
cc_user="<blah>"
load_rc_config $name
run_rc_command "$1"
Of course, the file /tmp/quuuuuuux never gets created, so the script
isn't running.
-JP
More information about the freebsd-questions
mailing list