Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* HELP: My process won't start from /sbin/init.d
@ 1995-07-06  4:00 Thomas Leitner
  1995-07-06  4:00 ` Dave Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Thomas Leitner @ 1995-07-06  4:00 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1995-07-11  4:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-06  4:00 HELP: My process won't start from /sbin/init.d Thomas Leitner
1995-07-06  4:00 ` Dave Carter
1995-07-07  4:00   ` Thomas Leitner
1995-07-07  4:00 ` Eric Werme
1995-07-07  4:00   ` Thomas Leitner
1995-07-11  4:00   ` Peter da Silva
1995-07-07  4:00 ` Peter Marksteiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox