r2759 - trunk/bootscripts/blfs/init.d

dj at linuxfromscratch.org dj at linuxfromscratch.org
Sat Oct 2 10:57:34 PDT 2004


Author: dj
Date: 2004-10-02 11:57:32 -0600 (Sat, 02 Oct 2004)
New Revision: 2759

Modified:
   trunk/bootscripts/blfs/init.d/alsa
   trunk/bootscripts/blfs/init.d/cups
   trunk/bootscripts/blfs/init.d/cyrus-sasl
   trunk/bootscripts/blfs/init.d/dhcp
   trunk/bootscripts/blfs/init.d/exim
   trunk/bootscripts/blfs/init.d/fam
   trunk/bootscripts/blfs/init.d/fcron
   trunk/bootscripts/blfs/init.d/gdm
   trunk/bootscripts/blfs/init.d/gpm
   trunk/bootscripts/blfs/init.d/lisa
   trunk/bootscripts/blfs/init.d/nas
   trunk/bootscripts/blfs/init.d/netfs
   trunk/bootscripts/blfs/init.d/nfs-server
   trunk/bootscripts/blfs/init.d/ntp
   trunk/bootscripts/blfs/init.d/postfix
   trunk/bootscripts/blfs/init.d/random
   trunk/bootscripts/blfs/init.d/sendmail
   trunk/bootscripts/blfs/init.d/svn
   trunk/bootscripts/blfs/init.d/winbind
   trunk/bootscripts/blfs/init.d/xinetd
Log:
initial changes for explicit path

Modified: trunk/bootscripts/blfs/init.d/alsa
===================================================================
--- trunk/bootscripts/blfs/init.d/alsa	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/alsa	2004-10-02 17:57:32 UTC (rev 2759)
@@ -17,7 +17,7 @@
 		echo "Starting ALSA...    Restoring volumes..."
 		loadproc /usr/sbin/alsactl restore
 		#echo "                    Loading MIDI font..."
-		#loadproc sfxload /path/to/soundfont
+		#loadproc /usr/sbin/sfxload /path/to/soundfont
 		;;
 
 	stop)

Modified: trunk/bootscripts/blfs/init.d/cups
===================================================================
--- trunk/bootscripts/blfs/init.d/cups	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/cups	2004-10-02 17:57:32 UTC (rev 2759)
@@ -17,7 +17,7 @@
 
 	stop)
 		echo "Stopping CUPS Printserver..."
-		killproc cupsd
+		killproc /usr/sbin/cupsd
 		;;
 
 	reload)
@@ -32,7 +32,7 @@
 		;;
 
 	status)
-		statusproc cupsd
+		statusproc /usr/sbin/cupsd
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/cyrus-sasl
===================================================================
--- trunk/bootscripts/blfs/init.d/cyrus-sasl	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/cyrus-sasl	2004-10-02 17:57:32 UTC (rev 2759)
@@ -18,7 +18,7 @@
 
 	stop)
 		echo "Stopping the Cyrus SASL Server..."
-		killproc saslauthd
+		killproc /usr/sbin/saslauthd
 		;;
 
 	restart)
@@ -28,7 +28,7 @@
 		;;
 
 	status)
-		statusproc saslauthd
+		statusproc /usr/sbin/saslauthd
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/dhcp
===================================================================
--- trunk/bootscripts/blfs/init.d/dhcp	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/dhcp	2004-10-02 17:57:32 UTC (rev 2759)
@@ -13,17 +13,17 @@
 case "$1" in
 	start)
 		echo "Starting DHCP Server..."
-		loadproc dhcpd -q eth1
+		loadproc /usr/sbin/dhcpd -q eth1
 		;;
 
 	stop)
 		echo "Stopping DHCP Server..."
-		killproc dhcpd
+		killproc /usr/sbin/dhcpd
 		;;
 
 	reload)
 		echo "Reloading DHCP Server..."
-		reloadproc dhcpd
+		reloadproc /usr/sbin/dhcpd
 		;;
 
 	restart)
@@ -33,7 +33,7 @@
 		;;
 
 	status)
-		statusproc dhcpd
+		statusproc /usr/sbin/dhcpd
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/exim
===================================================================
--- trunk/bootscripts/blfs/init.d/exim	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/exim	2004-10-02 17:57:32 UTC (rev 2759)
@@ -18,11 +18,11 @@
 
 	stop)
 		echo "Stopping exim..."
-		killproc exim
+		killproc /usr/sbin/exim
 		;;
 
 	status)
-		statusproc exim
+		statusproc /usr/sbin/exim
 		;;
 
 	restart)

Modified: trunk/bootscripts/blfs/init.d/fam
===================================================================
--- trunk/bootscripts/blfs/init.d/fam	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/fam	2004-10-02 17:57:32 UTC (rev 2759)
@@ -13,17 +13,17 @@
 case "$1" in
 	start)
 		echo "Starting File Alteration Monitor..."
-		loadproc famd -T 0
+		loadproc /usr/sbin/famd -T 0
 		;;
 
 	stop)
 		echo "Stopping File Alteration Monitor..."
-		killproc famd
+		killproc /usr/sbin/famd
 		;;
 
 	reload)
 		echo "Reloading File Alteration Monitor..."
-		reloadproc famd
+		reloadproc /usr/sbin/famd
 		;;
 
 	restart)
@@ -33,7 +33,7 @@
 		;;
 
 	status)
-		statusproc famd
+		statusproc /usr/sbin/famd
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/fcron
===================================================================
--- trunk/bootscripts/blfs/init.d/fcron	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/fcron	2004-10-02 17:57:32 UTC (rev 2759)
@@ -13,12 +13,12 @@
 case "$1" in
 	start)
 		echo "Starting fcron..."
-		loadproc fcron
+		loadproc /usr/sbin/fcron
 		;;
 
 	stop)
 		echo "Stopping fcron..."
-		killproc fcron
+		killproc /usr/sbin/fcron
 		;;
 
 	restart)
@@ -28,7 +28,7 @@
 		;;
 
 	status)
-		statusproc fcron
+		statusproc /usr/sbin/fcron
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/gdm
===================================================================
--- trunk/bootscripts/blfs/init.d/gdm	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/gdm	2004-10-02 17:57:32 UTC (rev 2759)
@@ -15,24 +15,24 @@
 case "$1" in
 	start)
 		echo "Starting GDM..."
-		loadproc gdm
+		loadproc /usr/bin/gdm
 		;;
 
 	stop)
 		echo "Stopping GDM..."
 		if [ -f /var/run/gdm.pid ]; then
-			loadproc gdm-stop
+			loadproc /usr/sbin/gdm-stop
 		fi
 		;;
 
 	reload)
 		echo "Reloading GDM..."
-		reloadproc gdm-safe-restart
+		loadproc /usr/sbin/gdm-safe-restart
 		;;
 
 	restart)
 		echo "Restarting GDM..."
-		loadproc gdm-restart
+		loadproc /usr/sbin/gdm-restart
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/gpm
===================================================================
--- trunk/bootscripts/blfs/init.d/gpm	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/gpm	2004-10-02 17:57:32 UTC (rev 2759)
@@ -26,12 +26,12 @@
 case "$1" in
 	start)
 		echo "Starting gpm..."
-		loadproc gpm -m "$MDEVICE" -t "$PROTOCOL" "$GPMOPTS"
+		loadproc /usr/sbin/gpm -m "$MDEVICE" -t "$PROTOCOL" "$GPMOPTS"
 		;;
 
 	stop)
 		echo "Stopping gpm..."
-		killproc gpm
+		killproc /usr/sbin/gpm
 		;;
 
 	restart)
@@ -41,7 +41,7 @@
 		;;
 
 	status)
-		statusproc gpm
+		statusproc /usr/sbin/gpm
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/lisa
===================================================================
--- trunk/bootscripts/blfs/init.d/lisa	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/lisa	2004-10-02 17:57:32 UTC (rev 2759)
@@ -15,17 +15,17 @@
 case "$1" in
         start)
                 echo "Starting LISA Daemon..."
-                loadproc lisa
+                loadproc /opt/kde/bin/lisa
                 ;;
 
         stop)
                 echo "Stopping LISA Daemon..."
-                killproc lisa
+                killproc /opt/kde/bin/lisa
                 ;;
 
         reload)
                 echo "Reloading LISA Daemon..."
-                reloadproc lisa
+                reloadproc /opt/kde/bin/lisa
                 ;;
 
         restart)
@@ -35,7 +35,7 @@
                 ;;
 
         status)
-                statusproc lisa
+                statusproc /opt/kde/bin/lisa
                 ;;
 
         *)

Modified: trunk/bootscripts/blfs/init.d/nas
===================================================================
--- trunk/bootscripts/blfs/init.d/nas	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/nas	2004-10-02 17:57:32 UTC (rev 2759)
@@ -10,8 +10,6 @@
 . /etc/sysconfig/rc
 . $rc_functions
 
-export PATH=$PATH:/usr/X11R6/bin
-
 case "$1" in
         start)
                 echo "Starting the Network Audio System Server..."
@@ -20,8 +18,8 @@
                 then
                         print_status warning running
                 else
-                        nasd -aa &
-                        pidof nasd
+                        /usr/X11R6/bin/nasd -aa &
+                        pidof /usr/X11R6/bin/nasd
                         if test $? = "0" ; then
                                 print_status success
                         else
@@ -32,12 +30,12 @@
 
         stop)
                 echo "Stopping the Network Audio System Server..."
-                killproc nasd
+                killproc /usr/X11R6/bin/nasd
                 ;;
 
         reload)
                 echo "Reloading the Network Audio System Server..."
-                reloadproc nasd
+                reloadproc /usr/X11R6/bin/nasd
                 ;;
 
         restart)
@@ -47,7 +45,7 @@
                 ;;
 
         status)
-                statusproc nasd
+                statusproc /usr/X11R6/bin/nasd
                 ;;
 
         *)

Modified: trunk/bootscripts/blfs/init.d/netfs
===================================================================
--- trunk/bootscripts/blfs/init.d/netfs	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/netfs	2004-10-02 17:57:32 UTC (rev 2759)
@@ -18,7 +18,7 @@
 		# have the _netdev option.  This is required for network
 		# filesystems to be mounted at boot time.
 		echo "Mounting network volumes..."
-		mount -a -O _netdev
+		/bin/mount -a -O _netdev
 		evaluate_retval
 		;;
 
@@ -28,8 +28,9 @@
 		# The following line obtains a list from the output of
 		# mount for all netfs types and anything that was
 		# mounted with the _netdev option.
-		NETMOUNTS=`mount | grep '_netdev\|smbfs\|ncpfs|\coda\|nfs' \
-			| cut -d " " -f 3 | sed 's/$/ /g'`
+		NETMOUNTS=`/bin/mount \
+			| /bin/grep '_netdev\|smbfs\|ncpfs|\coda\|nfs' \
+			| /usr/bin/cut -d " " -f 3 | /bin/sed 's/$/ /g'`
 
 		# Check to see if anything was listed from above
 		# (see if anything is actually needs to be unmounted)
@@ -37,11 +38,11 @@
 		then
 			# There is something mounted
 			# terminate the echo -n above
-			echo " "
+			echo ""
 
 			# Try and stop processes the nice way
 			# (probably won't work in most cases)
-			fuser -m -SIGTERM $NETMOUNTS > /dev/null
+			/bin/fuser -m -SIGTERM $NETMOUNTS > /dev/null
 
 			# Check and see if it found anything.  If it
 			# did, then give 3 seconds for things to exit
@@ -49,8 +50,8 @@
 			# This one will work all of the time!
 			if [ $? == 0 ]
 			then
-				sleep 3
-				fuser -km $NETMOUNTS > /dev/null
+				/bin/sleep 3
+				/bin/fuser -km $NETMOUNTS > /dev/null
 			fi
 
 			# We now need to unmount all network filesystems.
@@ -58,7 +59,7 @@
 			# for broken behavior of smbmount, and also to make
 			# certain that netmounts without the _netdev option
 			# will still get unmounted.
-			umount -a -O _netdev
+			/bin/umount -a -O _netdev
 			# save the retval
 			if [ $? != 0 ]
 			then
@@ -68,7 +69,7 @@
 			# Now catch the rest of the network filesystems
 			# by fstype.  This list can be extended later as
 			# more network filesystems are supported by mount.
-			umount -a -t coda,ncpfs,nfs,smbfs
+			/bin/umount -a -t coda,ncpfs,nfs,smbfs
 			if [ $? == 0 ]
 			then
 				[ -z $NERRVAL ]

Modified: trunk/bootscripts/blfs/init.d/nfs-server
===================================================================
--- trunk/bootscripts/blfs/init.d/nfs-server	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/nfs-server	2004-10-02 17:57:32 UTC (rev 2759)
@@ -28,48 +28,49 @@
 		fi
 		
 		# NFSD support only in 2.6 kernel
-		/bin/uname -r | grep "2.6"
+		/bin/uname -r | /bin/grep "2.6"
 		if [ $? == 0 ]; then
 			echo "Mounting nfsd virtual filesystem..."
-			mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
+			/bin/mount -t nfsd none /proc/fs/nfsd 2>&1 > /dev/null
 			evalutate_retval
 		fi
 
 		# Make ceratin that the list is refreshed on 
 		# a restart.
 		echo "Starting NFS Server..."
-		exportfs -ra 2>&1 > /dev/null
+		/usr/sbin/exportfs -ra 2>&1 > /dev/null
 		evaluate_retval
 		;;
 
 	stop)
 		echo "Stopping NFS statd..."
-		killproc rpc.statd
+		killproc /usr/sbin/rpc.statd
 
 		echo "Stopping NFS nfsd..."
 		# nfsd needs HUP....
 		TEMPSTOPSIG="$STOPSIG"
 		STOPSIG="HUP"
+		## Special case for nfsd with no full path
 		killproc nfsd
 		# return STOPSIG to it's orginal value...
 		STOPSIG="$TEMPSTOPSIG"
 
 		echo "Stopping NFS mountd..."
-		killproc rpc.mountd
+		killproc /usr/sbin/rpc.mountd
 
 		if [ "$QUOTAS" == "yes" ]; then
 			echo "Stopping NFS rquotad..."
-			killproc rpc.rquotad
+			killproc /usr/sbin/rpc.rquotad
 		fi
 
 		echo "Stopping NFS Server Services..."
-		exportfs -au 2>&1 > /dev/null
+		/usr/sbin/exportfs -au 2>&1 > /dev/null
 		evaluate_retval
 		;;
 
 	reload)
 		echo "Reloading NFS Server..."
-		exportfs -ra
+		/usr/sbin/exportfs -ra
 		evaluate_retval
 		;;
 
@@ -80,9 +81,10 @@
 		;;
 
 	status)
-		statusproc rpc.mountd
+		statusproc /usr/sbin/rpc.mountd
+		## Special case for nfsd with no full path
 		statusproc nfsd
-		statusproc rpc.statd
+		statusproc /usr/sbin/rpc.statd
 		if [ "$QUOTA" == "yes" ]; then
 			statusproc rpc.rquotad
 		fi

Modified: trunk/bootscripts/blfs/init.d/ntp
===================================================================
--- trunk/bootscripts/blfs/init.d/ntp	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/ntp	2004-10-02 17:57:32 UTC (rev 2759)
@@ -10,12 +10,12 @@
 case "$1" in
 	start)
 		echo "Starting ntpd..."
-		loadproc ntpd
+		loadproc /usr/sbin/ntpd
 		;;
 
 	stop)
 		echo "Stopping ntpd..."
-		killproc ntpd
+		killproc /usr/sbin/ntpd
 		;;
 
 	restart)
@@ -25,7 +25,7 @@
 		;;
 
 	status)
-		statusproc ntpd
+		statusproc /usr/sbin/ntpd
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/postfix
===================================================================
--- trunk/bootscripts/blfs/init.d/postfix	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/postfix	2004-10-02 17:57:32 UTC (rev 2759)
@@ -13,32 +13,32 @@
 case "$1" in
 	start)
 		echo "Starting Postfix..."
-		loadproc postfix start
+		loadproc /usr/sbin/postfix start
 		;;
 
 	stop)
 		echo "Stopping Postfix..."
-		loadproc postfix stop
+		loadproc /usr/sbin/postfix stop
 		;;
 
 	reload)
 		echo "Reloading Postfix..."
-		loadproc postfix reload
+		loadproc /usr/sbin/postfix reload
 		;;
 
 	abort)
 		echo "Aborting Postfix..."
-		loadproc postfix abort
+		loadproc /usr/sbin/postfix abort
 		;;
 
 	flush)
 		echo "Flushing Postfix..."
-		loadproc postfix flush
+		loadproc /usr/sbin/postfix flush
 		;;
 
 	check)
 		echo "Checking Postfix..."
-		loadproc postfix check
+		loadproc /usr/sbin/postfix check
 		;;
 
 	restart)

Modified: trunk/bootscripts/blfs/init.d/random
===================================================================
--- trunk/bootscripts/blfs/init.d/random	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/random	2004-10-02 17:57:32 UTC (rev 2759)
@@ -15,15 +15,17 @@
 	start)
 		echo "Initializing kernel random number generator..."
 		if [ -f /var/tmp/random-seed ]; then
-			cat /var/tmp/random-seed >/dev/urandom
+			/bin/cat /var/tmp/random-seed >/dev/urandom
 		fi
-		dd if=/dev/urandom of=/var/tmp/random-seed count=1 &>/dev/null
+		/bin/dd if=/dev/urandom of=/var/tmp/random-seed \
+			count=1 &>/dev/null
 		evaluate_retval
 		;;
                 
 	stop)
 		echo "Saving random seed..."
-		dd if=/dev/urandom of=/var/tmp/random-seed count=1 &>/dev/null
+		/bin/dd if=/dev/urandom of=/var/tmp/random-seed \
+			count=1 &>/dev/null
 		evaluate_retval
 		;;
 

Modified: trunk/bootscripts/blfs/init.d/sendmail
===================================================================
--- trunk/bootscripts/blfs/init.d/sendmail	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/sendmail	2004-10-02 17:57:32 UTC (rev 2759)
@@ -18,11 +18,11 @@
 
 	stop)
 		echo "Stopping Sendmail..."
-		killproc sendmail
+		killproc /usr/sbin/sendmail
 		;;
 
 	status)
-		statusproc sendmail
+		statusproc /usr/sbin/sendmail
 		;;
 
 	restart)

Modified: trunk/bootscripts/blfs/init.d/svn
===================================================================
--- trunk/bootscripts/blfs/init.d/svn	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/svn	2004-10-02 17:57:32 UTC (rev 2759)
@@ -18,7 +18,7 @@
 
 	stop)
 		echo "Stopping Subversion..."
-		killproc svnserve.orig
+		killproc /usr/bin/svnserve.orig
 		;;
 
 	restart)
@@ -28,7 +28,7 @@
 		;;
 
 	status)
-		statusproc svnserve.orig
+		statusproc /usr/bin/svnserve.orig
 		;;
 
 	*)

Modified: trunk/bootscripts/blfs/init.d/winbind
===================================================================
--- trunk/bootscripts/blfs/init.d/winbind	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/winbind	2004-10-02 17:57:32 UTC (rev 2759)
@@ -17,16 +17,16 @@
 
         start)
                 echo "Starting winbind..."
-                loadproc winbindd
+                loadproc /usr/sbin/winbindd
                 ;;
 
         stop)
                 echo "Stopping winbind..."
-		killproc winbindd
+		killproc
 
 	reload)
 		echo "Reloading winbind..."
-		reloadproc winbindd
+		reloadproc /usr/sbin/winbindd
 		;;
 
         restart)
@@ -36,7 +36,7 @@
                 ;;
 
         status)
-                statusproc winbindd
+                statusproc /usr/sbin/winbindd
                 ;;
 
         *)

Modified: trunk/bootscripts/blfs/init.d/xinetd
===================================================================
--- trunk/bootscripts/blfs/init.d/xinetd	2004-09-29 04:00:58 UTC (rev 2758)
+++ trunk/bootscripts/blfs/init.d/xinetd	2004-10-02 17:57:32 UTC (rev 2759)
@@ -23,7 +23,7 @@
 
 	reload)
 		echo "Reloading xinetd..."
-		killall -HUP xinetd
+		reloadproc /usr/sbin/xinetd
 		;;
 
 	restart)




More information about the blfs-book mailing list