r4848 - trunk/bootscripts/blfs/init.d

dj at linuxfromscratch.org dj at linuxfromscratch.org
Sat Jul 30 21:46:59 PDT 2005


Author: dj
Date: 2005-07-30 22:46:58 -0600 (Sat, 30 Jul 2005)
New Revision: 4848

Removed:
   trunk/bootscripts/blfs/init.d/courier
Modified:
   trunk/bootscripts/blfs/init.d/alsa
   trunk/bootscripts/blfs/init.d/mysql
Log:
removed courier, alsa stop only, fix mysql

Modified: trunk/bootscripts/blfs/init.d/alsa
===================================================================
--- trunk/bootscripts/blfs/init.d/alsa	2005-07-31 00:47:00 UTC (rev 4847)
+++ trunk/bootscripts/blfs/init.d/alsa	2005-07-31 04:46:58 UTC (rev 4848)
@@ -13,13 +13,6 @@
 . $rc_functions
 
 case "$1" in
-	start)
-		boot_mesg "Starting ALSA...    Restoring volumes..."
-		loadproc /usr/sbin/alsactl restore
-		# boot_mesg "Loading MIDI font..."
-		# loadproc /usr/sbin/sfxload /path/to/soundfont
-		;;
-
 	stop)
 		boot_mesg "Stopping ALSA...    Saving volumes..."
 		loadproc /usr/sbin/alsactl store
@@ -27,14 +20,8 @@
 		#loadproc sfxload -i
 		;;
 
-	restart)
-		$0 stop
-		sleep 1
-		$0 start
-		;;
-
 	*)
-		echo "Usage: $0 {start|stop|restart}"
+		echo "Usage: $0 stop"
 		exit 1
 		;;
 esac

Deleted: trunk/bootscripts/blfs/init.d/courier
===================================================================
--- trunk/bootscripts/blfs/init.d/courier	2005-07-31 00:47:00 UTC (rev 4847)
+++ trunk/bootscripts/blfs/init.d/courier	2005-07-31 04:46:58 UTC (rev 4848)
@@ -1,245 +0,0 @@
-#!/bin/sh
-# Begin $rc_base/init.d/courier
-
-# Based on sysklogd script from LFS-3.1 and earlier.
-# Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
-
-# $LastChangedBy$
-# $Date$
-
-. /etc/sysconfig/rc
-. ${rc_functions}
-
-case "${1}" in
-	start)
-		# Start daemons.
-		touch /var/lock/subsys/courier
-		boot_mesg "Starting Courier mail services:"
-		boot_mesg_flush
-
-		# Start courierfilter
-		boot_mesg "     Courierfilter..."
-		/usr/sbin/courierfilter start
-		evaluate_retval		
-
-		# Start authdaemond
-		boot_mesg "     Auth..."
-		/usr/lib/courier/authlib/authdaemond start
-		evaluate_retval
-
-		# Start ldapaliasd
-		if [ -f /etc/courier/ldapaliasd ]; then
-			. /etc/courier/ldapaliasd
-			if [ "${LDAPALIASDSTART}" = "YES" ]; then
-				boot_mesg "     LDAP Alias..."
-				/usr/sbin/courierldapaliasd start
-				if [ "${?}" -eq "0" ]; then
-					echo_ok
-					touch /var/run/courier/ldapaliasd.lock
-				else
-					echo_failed
-				fi
-			fi
-		fi
-
-		# Start Webmail
-		if [ -f /etc/courier/webmaild ]; then
-			. /etc/courier/webmaild
-			if [ "${WEBMAILDSTART}" = "YES" ]; then
-				boot_mesg "     Webmail..."
-				/usr/sbin/webmaild start
-				evaluate_retval
-			fi
-		fi
-
-		# Start Courierd
-		boot_mesg "     Courier..."
-		/usr/sbin/courier start
-		evaluate_retval
-
-		# Start ESMTPD
-		if [ -f /etc/courier/esmtpd ]; then
-			. /etc/courier/esmtpd
-			if [ "${ESMTPDSTART}" = "YES" ]; then
-				boot_mesg "     ESMTP..."
-				/usr/sbin/esmtpd start
-				evaluate_retval
-			fi
-		fi
-
-		# Start ESMTPD-SSL
-		if [ -f /etc/courier/esmtpd-msa ]; then
-			. /etc/courier/esmtpd-msa
-			if [ "${ESMTPDSTART}" = "YES" ]; then
-				boot_mesg "     ESMTP-MSA..."
-				/usr/sbin/esmtpd-msa start
-				evaluate_retval
-			fi
-		fi
-
-		if [ -f /etc/courier/esmtpd-ssl ]; then
-			. /etc/courier/esmtpd-ssl
-			if [ "${ESMTPDSSLSTART}" = "YES" ]; then
-				boot_mesg "     ESMTP-SSL..."
-				/usr/sbin/esmtpd-ssl start
-				evaluate_retval
-			fi
-		fi
-
-		# Start POP3D
-		if [ -f /etc/courier/pop3d ]; then
-			. /etc/courier/pop3d
-			if [ "${POP3DSTART}" = "YES" ]; then
-				boot_mesg "     POP3..."
-				/usr/sbin/pop3d start
-				evaluate_retval
-			fi
-		fi
-
-		# Start POP3D-SSL
-		if [ -f /etc/courier/pop3d-ssl ]; then
-			. /etc/courier/pop3d-ssl
-			if [ "${POP3DSSLSTART}" = "YES" ]; then
-				boot_mesg "     POP3-SSL..."
-				/usr/sbin/pop3d-ssl start
-				evaluate_retval
-			fi
-		fi
-
-		# Start IMAPD
-		if [ -f /etc/courier/imapd ]; then
-			. /etc/courier/imapd
-			if [ "${IMAPDSTART}" = "YES" ]; then
-				boot_mesg "     IMAP..."
-				/usr/sbin/imapd start
-				evaluate_retval
-			fi
-		fi
-
-		# Start IMAPD-SSL
-		if [ -f /etc/courier/imapd-ssl ]; then
-			. /etc/courier/imapd-ssl
-			if [ "${IMAPDSSLSTART}" = "YES" ]; then
-				boot_mesg "     IMAP-SSL..."
-				/usr/sbin/imapd-ssl start
-				evaluate_retval
-			fi
-		fi
-        ;;
-
-
-	stop)
-		boot_mesg "Stopping Courier mail services:"
-		boot_mesg_flush
-
-		# IMAP SSL
-		if [ -f /var/run/courier/imapd-ssl.pid.lock ]; then
-			boot_mesg "     IMAP SSL..."
-			/usr/sbin/imapd-ssl stop
-			evaluate_retval
-			rm -f /var/run/courier/imapd-ssl.pid{,.lock}
-		fi
-
-		# IMAP
-		if [ -f /var/run/courier/imapd.pid.lock ]; then
-			boot_mesg "     IMAP..."
-			/usr/sbin/imapd stop
-			evaluate_retval
-			rm -f /var/run/courier/imapd.pid{,.lock}
-		fi
-
-		# POP3 SSL
-		if [ -f /var/run/courier/pop3d-ssl.pid.lock ]; then
-			boot_mesg "     POP3 SSL..."
-			/usr/sbin/pop3d-ssl stop
-			evaluate_retval
-			rm -f /var/run/courier/pop3d-ssl.pid{,.lock}
-		fi
-
-		# POP3
-		if [ -f /var/run/courier/pop3d.pid.lock ]; then
-			boot_mesg "     POP3..."
-			/usr/sbin/pop3d stop
-			evaluate_retval
-			rm /var/run/courier/pop3d.pid{,.lock}
-		fi
-
-		# ESMTP SSL
-		if [ -f /var/run/courier/esmtpd-ssl.pid.lock ]; then
-			boot_mesg "     ESMTP SSL..."
-			/usr/sbin/esmtpd-ssl stop
-			evaluate_retval
-			rm -f /var/run/courier/esmtpd-ssl.pid{,.lock}
-		fi
-
-		# ESMTP MSA
-		if [ -f /var/run/courier/esmtpd-msa.pid.lock ]; then
-			boot_mesg "     ESMTP MSA..."
-			/usr/sbin/esmtpd-msa stop
-			evaluate_retval
-			rm -f /var/run/courier/esmtpd-msa.pid{,.lock}
-		fi
-
-		# ESMTP
-		if [ -f /var/run/courier/esmtpd.pid.lock ]; then
-			boot_mesg "     ESMTP..."
-			/usr/sbin/esmtpd stop
-			evaluate_retval
-			rm -f /var/run/courier/esmtpd.pid{,.lock}
-		fi
-
-		# Courier
-		boot_mesg "     Courier..."
-		/usr/sbin/courier stop
-		evaluate_retval
-
-		# Webmail
-		if [ -f /var/run/courier/sqwebmaild.pid.lock ]; then
-			boot_mesg "     Webmail..."
-			/usr/sbin/webmaild stop
-			evaluate_retval
-			rm -f /var/run/courier/sqwebmaild.pid{,.lock,.pcp.lock}
-		fi
-
-		# LDAP Alias
-		if [ -f /var/run/courier/ldapaliasd.lock ]; then
-			boot_mesg "     LDAP Alias..."
-			/usr/sbin/courierldapaliasd stop
-			evaluate_retval
-			rm -f /var/run/courier/ldapaliasd.lock
-		fi
-
-		# Authdaemon
-		boot_mesg "     Auth..."
-		/usr/lib/courier/authlib/authdaemond stop
-		evaluate_retval
-
-		# Courierfilter
-		if [ -f /var/run/courier/courierfilter.pid ]; then
-			boot_mesg "     Courierfilter..."
-			/usr/sbin/courierfilter stop
-			evaluate_retval
-			rm -f /var/run/courier/courierfilter.pid
-		fi
-
-		# Remove the master lock file
-		rm -f /var/lock/subsys/courier
-	;;
-
-	restart)
-		$0 stop
-		sleep 1
-		$0 start
-        ;;
-
-	status)
-		statusproc courierfilter
-	;;
-
-	*)
-		echo "Usage: $0 {start|stop|restart|status}"
-		exit 1
-	;;
-esac
-
-# End $rc_base/init.d/courier

Modified: trunk/bootscripts/blfs/init.d/mysql
===================================================================
--- trunk/bootscripts/blfs/init.d/mysql	2005-07-31 00:47:00 UTC (rev 4847)
+++ trunk/bootscripts/blfs/init.d/mysql	2005-07-31 04:46:58 UTC (rev 4848)
@@ -37,6 +37,7 @@
 			echo ""
 			echo_failure
 		else
+			echo ""
 			/usr/bin/mysqld_safe --user=mysql 2>&1 >/dev/null &
 			evaluate_retval
 		fi




More information about the blfs-book mailing list