Article View: alt.os.linux.mandrake
Article #152service at boot-up
From: Bryce
Date: Tue, 23 Apr 2002 14:08
Date: Tue, 23 Apr 2002 14:08
61 lines
2808 bytes
2808 bytes
Hi everyone
I you can solve this one I will give you a big wet kiss on the bum.
I have a service (connectd) which I want to start at bootup (init 5). So I
have the script in init.d, and linked to rc5.d (and others). Now, if I let
my system boot-up automatically, the service will not start (even though
drakconf -> services says it is running, it is not). If I use the
Interactive startup at boottime, it WILL startup. If I use
service connectd start
from the console, it will start. Ie. the only time it will NOT start is in
a full-speed automatic bootup. I have included the boot script below.
work hard now to earn your kiss.
Bryce
#!/bin/sh
#
# Startup script for the Connect server
#
# Taken for RH5.0 common startup scripts
#
# chkconfig: 35 11 89
# description: Connect server is used to connect the
# local network to the internet.
#
#
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case "$1" in
start)
echo -n "Starting connectd: "
daemon connectd
echo
touch /var/lock/subsys/connectd
;;
stop)
echo -n "Shutting down connectd: "
killproc connectd
echo
rm -f /var/lock/subsys/connectd
rm -f /var/run/connectd.pid
;;
status)
status connectd
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: connectd {start|stop|restart|status}"
exit 1
esac
exit 0
Technical Details
Message-ID:
<3cc5690c_1@news.iprimus.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!lon1-news.nildram.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.cgocable.net!feed.tor.primus.ca!feed.nntp.primus.ca!news.tor.primus.ca!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8a83,e98584ae63f804c9,start X-Google-Attributes: gidf8a83,public X-Google-Thread: 102983,e98584ae63f804c9,start X-Google-Attributes: gid102983,public X-Google-ArrivalTime: 2002-04-23 07:08:55 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!lon1-news.nildram.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.cgocable.net!feed.tor.primus.ca!feed.nntp.primus.ca!news.tor.primus.ca!not-for-mail Message-ID: <3cc5690c_1@news.iprimus.com.au> From: Bryce <bryceman@NOSPAM.iprimus.com.au> Subject: service at boot-up Newsgroups: alt.os.linux.mandrake,aus.computers.linux Followup-To: alt.os.linux.mandrake Lines: 64 User-Agent: KNode/0.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Original-NNTP-Posting-Host: 202.138.17.120 X-Original-NNTP-Posting-Host: 127.0.0.1 Organization: iPrimus Customer - reports relating to abuse should be sent to abuse@iprimus.com.au Date: Tue, 23 Apr 2002 14:08:52 GMT NNTP-Posting-Host: 203.134.67.67 X-Complaints-To: news@primus.ca X-Trace: news.tor.primus.ca 1019570932 203.134.67.67 (Tue, 23 Apr 2002 10:08:52 EDT) NNTP-Posting-Date: Tue, 23 Apr 2002 10:08:52 EDT