rpms/acpid/devel acpid.init,1.6,1.7

Zdenek Prikryl (zprikryl) fedora-extras-commits at redhat.com
Tue Oct 23 15:06:15 UTC 2007


Author: zprikryl

Update of /cvs/extras/rpms/acpid/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21521

Modified Files:
	acpid.init 
Log Message:
Fixed initscript



Index: acpid.init
===================================================================
RCS file: /cvs/extras/rpms/acpid/devel/acpid.init,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- acpid.init	23 Oct 2007 08:51:40 -0000	1.6
+++ acpid.init	23 Oct 2007 15:05:39 -0000	1.7
@@ -30,19 +30,17 @@
 start() {
 	# Check if it is already running
 	if [ ! -f /var/lock/subsys/acpid ]; then
-	    echo -n $"Starting acpi daemon: "	
 		# Check if acpid is executable
 		if [ ! -x /usr/sbin/acpid ]; then
 			logger -p daemon.error -t $0 "/usr/sbin/acpid is not executable."
-			echo_failure
 			exit 1
 		fi
 		# Check for kernel support
 		if [ ! -f /proc/acpi/event ]; then
 			logger -p daemon.error -t $0 "need ACPI_PROC_EVENT support in kernel."
-			echo_failure
 			exit 1
 		fi
+		echo -n $"Starting acpi daemon: "	
 	    daemon /usr/sbin/acpid $@
 	    RETVAL=$?
 	    [ $RETVAL -eq 0 ] && touch /var/lock/subsys/acpid




More information about the fedora-extras-commits mailing list