From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e1f062a1ac84e1b6,start X-Google-Attributes: gidfee84,public From: tom@finwds01.tu-graz.ac.at (Thomas Leitner) Subject: HELP: My process won't start from /sbin/init.d Date: 1995/07/06 Message-ID: <3tgv3v$q71@fstgds15.tu-graz.ac.at>#1/1 X-Deja-AN: 105732218 organization: Graz University of Technology, Austria newsgroups: comp.unix.osf.osf1 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