tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Added Initialization Files Not Running
@ 1997-01-16 14:47 Aharon Schkolnik
  0 siblings, 0 replies; only message in thread
From: Aharon Schkolnik @ 1997-01-16 14:47 UTC (permalink / raw)
  To: tru64-unix-managers


Hi.

I'm sure it's something stupid, but I added two init files, and
neither of them appears to be run when the system boots. I also didn't
find anything in any of the log files - maybe I don't know where to
look. Anyway, here's what I have:


TIA.

-rwxr-x---   1 bin      bin          618 Jan  9 12:46 /sbin/init.d/qmail
-rwxr-x---   1 bin      bin          511 Dec 23 17:07 /sbin/init.d/xfs

healdb:aharon#ls -l /sbin/rc*.d/*qmail /sbin/rc*.d/*xfs
lrwxrwxrwx   1 root     bin           15 Jan  8 12:47 /sbin/rc0.d/K25qmail -> ../init.d/qmail
lrwxrwxrwx   1 root     bin           13 Dec 23 17:14 /sbin/rc0.d/K60xfs -> ../init.d/xfs
lrwxrwxrwx   1 root     bin           15 Jan  8 12:46 /sbin/rc2.d/K30qmail -> ../init.d/qmail
lrwxrwxrwx   1 root     bin           13 Dec 23 17:15 /sbin/rc2.d/K63xfs -> ../init.d/xfs
lrwxrwxrwx   1 root     bin           13 Dec 23 17:12 /sbin/rc2.d/S59xfs -> ../init.d/xfs
lrwxrwxrwx   1 root     bin           15 Jan  8 12:48 /sbin/rc3.d/S40qmail -> ../init.d/qmail


healdb:aharon#cat /sbin/init.d/qmail 
#!/sbin/sh
# 

QMAILDIR=/var/qmail

PATH=/sbin:/usr/sbin:/usr/bin:$QMAILDIR/bin
export PATH

case "$1" in
'start')
	set `who -r`
	if [ "$9" = "S" ]; then
		if [ -f $QMAILDIR/bin/qmail-start ]; then 
			qmail-start splogger qmail &
			echo "qmail started"
		else
			echo "Unable to start qmail, No $QMAIL/bin/qmail-start"
			exit 1
		fi
	else
		echo "Unable to start qmail, Run level must be S"
		exit 1
	fi
	;; 
'stop')
	for pid in `/bin/ps -e | grep qmail-send | grep -v grep | awk '{print $1}'`
	do
		echo "Stopping qmail process: "
		ps $pid
		/bin/kill $pid

	done
	;;


*)
	echo "usage: $0 {start|stop}"
	;;
esac



healdb:aharon#cat /sbin/init.d/xfs 
#!/sbin/sh
# 

# Control the x font server (xfs)
#

PATH=/sbin:/usr/sbin:/usr/bin:/usr/opt/XR6320/X11R6/bin/
export PATH

case "$1" in
'start')
        set `who -r`
        if [ $9 = "S" ]; then
                if xfs &; then
	                echo "x font server (xfs) started "
                fi
        fi
        ;;
'stop')
	pid=`/bin/ps -e | grep xfs | sed -e 's/^  *//' -e 's/ .*//' | head -1`
	if [ "X$pid" != "X" ]
	then
		/bin/kill $pid
	fi
	;;
*)
        echo "usage: $0 {start|stop}"
        ;;
esac

-- 
  The day is short, and the work is great,     |   Aharon Schkolnik
  and the laborers are lazy, and the reward    |   Aharon@Health.Gov.IL
  is great, and the Master of the house is     |
  impatient. - Ethics Of The Fathers Ch. 2     |

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-01-16 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-16 14:47 Added Initialization Files Not Running Aharon Schkolnik

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