Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with start scripts in /etc/init.d
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
arifmamdani
n00b
n00b


Joined: 11 Jun 2002
Posts: 21
Location: St. Paul, MN

PostPosted: Tue Jun 11, 2002 3:37 am    Post subject: problem with start scripts in /etc/init.d Reply with quote

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
View user's profile Send private message
ElCondor
Guru
Guru


Joined: 10 Apr 2002
Posts: 520
Location: Vienna, Austria, Europe

PostPosted: Tue Jun 11, 2002 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
mksoft
l33t
l33t


Joined: 28 May 2002
Posts: 844

PostPosted: Tue Jun 11, 2002 9:11 am    Post subject: Reply with quote

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:
Code:
su -


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
View user's profile Send private message
james
n00b
n00b


Joined: 24 Apr 2002
Posts: 56
Location: Middle Smithfield, PA

PostPosted: Tue Jun 11, 2002 11:29 pm    Post subject: Reply with quote

Is this a new install?

Try updatedb to be sure.
_________________
17 Opps It's 19 now ;-) Gentoo's and counting
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum