View previous topic :: View next topic |
Author |
Message |
arifmamdani n00b
Joined: 11 Jun 2002 Posts: 21 Location: St. Paul, MN
|
Posted: Tue Jun 11, 2002 3:37 am Post subject: problem with start scripts in /etc/init.d |
|
|
I'm having a strange problem starting services using the scripts in /etc/init.d/
when I try to start a service, I get an error saying (using fam as an example):
Code: | * Starting fam...
/sbin/runscript.sh: start-stop-daemon: command not found [ !! ] |
but looking in /etc/init.d/ it's clearly there:
Code: | -rwxr-xr-x 1 root root 513 06-09 03:22 fam |
and here's what the script says:
Code: | # Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# /space/gentoo/cvsroot/gentoo-x86/app-admin/fam-oss/files/fam,v 1.3 2002/03/24 08:31:02 azarah Exp
depend() {
need portmap
}
start() {
ebegin "Starting fam"
start-stop-daemon --start --quiet --exec /usr/bin/fam --background \
-- -T 0 -c /etc/fam.conf
eend $?
}
stop() {
ebegin "Stopping fam"
start-stop-daemon --stop --quiet --exec /usr/bin/fam
eend $?
}
|
I'm at a loss as to where to start figuring out what's going on here, advice would be appreciated.
thanks |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Tue Jun 11, 2002 8:25 am Post subject: |
|
|
fam is okay, you are missing another program: Code: | PHIEPS root # which start-stop-daemon
/sbin/start-stop-daemon
PHIEPS root # qpkg -f /sbin/start-stop-daemon
sys-apps/baselayout * |
maybe you should re-emerge baselayout
*ElCondor pasa * _________________ Here I am the victim of my own choices and I'm just starting! |
|
Back to top |
|
|
mksoft l33t
Joined: 28 May 2002 Posts: 844
|
Posted: Tue Jun 11, 2002 9:11 am Post subject: |
|
|
If you su before running /etc/init.d/fam the path won't get updated, as a result start-stop-daemon cannot be found (since it sits in /sbin, which is not found on nomral user's path).
Do:
When switching to root. This will ensure that the paths are updated and /sbin will be in root's path.
This comes up so often, I think it should go in the FAQ. _________________ There's someone in my head but it's not me - Pink Floyd |
|
Back to top |
|
|
james n00b
Joined: 24 Apr 2002 Posts: 56 Location: Middle Smithfield, PA
|
Posted: Tue Jun 11, 2002 11:29 pm Post subject: |
|
|
Is this a new install?
Try updatedb to be sure. _________________ 17 Opps It's 19 now Gentoo's and counting |
|
Back to top |
|
|
|