From: <dha...@us...> - 2006-08-07 01:26:32
|
Revision: 197 Author: dhartman Date: 2006-08-06 18:26:25 -0700 (Sun, 06 Aug 2006) ViewCVS: http://svn.sourceforge.net/astlinux/?rev=197&view=rev Log Message: ----------- add acpi-init script Added Paths: ----------- branches/dhartman/package/acpid/acpid.init Added: branches/dhartman/package/acpid/acpid.init =================================================================== --- branches/dhartman/package/acpid/acpid.init (rev 0) +++ branches/dhartman/package/acpid/acpid.init 2006-08-07 01:26:25 UTC (rev 197) @@ -0,0 +1,46 @@ +#!/bin/sh + +. /etc/rc.conf + +start () { +if [ -x /usr/sbin/acpid ] +then +echo "Starting acpid..." +/usr/sbin/acpid +fi +} + +stop () { +if `ps | grep -q acpid` +then +echo "Stopping acpid..." +killall acpid 2> /dev/null +fi +} + +case $1 in + +start) +start +;; + +stop) +stop +;; + +init) +init +start +;; + +restart) +stop +sleep 2 +start +;; + +*) +echo "Usage: start|stop|restart" +;; + +esac Property changes on: branches/dhartman/package/acpid/acpid.init ___________________________________________________________________ Name: svn:executable + * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |