From: tom@finwds01.tu-graz.ac.at (Thomas Leitner)
Subject: HELP: My process won't start from /sbin/init.d
Date: 1995/07/06 [thread overview]
Message-ID: <3tgv3v$q71@fstgds15.tu-graz.ac.at> (raw)
Hi,
I wrote a small remote tape daemon which I use to backup our OS/2
machines over the net to a DAT drive connected to the DEC 3000/600
running OSF/1 3.2
For the daemon to start at system boot, I wrote a small startup script
which I put in /sbin/init.d and made the proper symlinks to
/sbin/rc3.d and /sbin/rc2.d like that:
-rwxr-x--- 1 bin bin 624 Jul 6 16:20 init.d/rtape
lrwxrwxrwx 1 root bin 18 Mar 21 15:33 S93rtape -> /sbin/init.d/r
tape
lrwxrwxrwx 1 root bin 18 Mar 21 15:33 K93rtape -> /sbin/init.d/r
tape
A listing of the rtape script is appended to that mail. Now, the problem is,
that during bootup everything looks fine. The "rtaped daemon started."
message appears. But when I log-in and check, the rtaped daemon just is
not running!!!
I have the same problem with another server process of mine and noticed,
that the processes run for a short while during system boot but are
killed after a couple of seconds.
When I start everything under root with
/sbin/init.d/rtape start
the process continues to run.
So my question: What am I doing wrong?
Thanks -- Tom
---------------- rtape script -------------------
#!/bin/sh
#
# start or stop rtaped daemon
#
PATH=/sbin:/usr/sbin:/usr/bin
export PATH
TAPE=/dev/nrmt0h
case "$1" in
'start')
if [ -f /usr/local/bin/rtaped ]; then
pid=`/bin/ps -e | grep rtaped | grep -v grep | sed -e 's/^ *//' -e 's/ .*//' | head -1` ;
if [ "X$pid" = "X" ]; then
/usr/local/bin/rtaped $TAPE &
echo "rtaped daemon started."
fi
fi
;;
'stop')
pid=`/bin/ps -e | grep rtaped | grep -v grep | sed -e 's/^ *//' -e 's/ .*//' | head -1` ;
if [ "X$pid" != "X" ]; then
/bin/kill $pid ;
echo "rtaped daemon killed."
fi
;;
*)
echo "usage: $0 {start|stop}"
exit 1
;;
esac
exit 0
--
Tom Leitner, tom@finwds01.tu-graz.ac.at |\ _,,,---,,_
Dept. of Communications zzz. /,`.-'`' -. ;-;;,_.
Graz University of Technology |,4- ) )-,_. ,\ ( `'-'
Inffeldgasse 12 '---''(_/--' `-'\_)
A-8010 Graz / Austria / Europe, Phone: +43-316-873-7455, Fax: +43-316-463-697
WWW home page: http://wiis.tu-graz.ac.at/people/tom.html
next reply other threads:[~1995-07-06 4:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-07-06 4:00 Thomas Leitner [this message]
1995-07-06 4:00 ` HELP: My process won't start from /sbin/init.d Dave Carter
1995-07-07 4:00 ` Thomas Leitner
1995-07-07 4:00 ` Peter Marksteiner
1995-07-07 4:00 ` Eric Werme
1995-07-07 4:00 ` Thomas Leitner
1995-07-11 4:00 ` Peter da Silva
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox