Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Mar 2007 10:14:17 -0500
From:      "Jean-Philippe Daigle" <jean.daigle@SolaceSystems.com>
To:        "Chris Slothouber" <chris@hier7.com>, <FreeBSD-questions@FreeBSD.org>
Subject:   RE: Starting a service on boot
Message-ID:  <6B865826E860EF42B3A387A03F39539616918113@EX0004.AllstreamITS.local>
In-Reply-To: <45EC319C.3010202@hier7.com>
References:  <6B865826E860EF42B3A387A03F39539616917F69@EX0004.AllstreamITS.local><45EC2EDE.9090201@hier7.com><6B865826E860EF42B3A387A03F3953961691808C@EX0004.AllstreamITS.local> <45EC319C.3010202@hier7.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-
> questions@freebsd.org] 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
>=20
> 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=20
-rwxr-xr-x  1 root  wheel  246 Mar  5 10:11 cc.sh

Script contents:
(/etc/rc.d)$ cat cc.sh=20
#!/bin/sh
#
# PROVIDE: cc
# REQUIRE: DAEMON

. /etc/rc.subr

touch /tmp/quuuuuuux

name=3D"cc"
rcvar=3D`set_rcvar`
command=3D"/home/<blah>/cruisecontrol/cruisecontrol.sh"
command_args=3D"&"
cc_user=3D"<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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6B865826E860EF42B3A387A03F39539616918113>