[PC-BSD Commits] r718 - pcbsd/trunk/system-overlay/PCBSD/Services/hal

svn at pcbsd.org svn at pcbsd.org
Thu Sep 13 10:06:23 PDT 2007


Author: kris
Date: 2007-09-13 10:06:23 -0700 (Thu, 13 Sep 2007)
New Revision: 718

Modified:
   pcbsd/trunk/system-overlay/PCBSD/Services/hal/isRunning.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/hal/restart.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/hal/start.sh
   pcbsd/trunk/system-overlay/PCBSD/Services/hal/stop.sh
Log:
Fixed the HAL services from not stopping / starting



Modified: pcbsd/trunk/system-overlay/PCBSD/Services/hal/isRunning.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/Services/hal/isRunning.sh	2007-09-13 16:48:56 UTC (rev 717)
+++ pcbsd/trunk/system-overlay/PCBSD/Services/hal/isRunning.sh	2007-09-13 17:06:23 UTC (rev 718)
@@ -2,7 +2,7 @@
 # This script checks if a service is running
 # Return a "0" if service is enabled or a "1" if it is disabled
 
-grep 'hald_enable="YES"' /etc/rc.conf >/dev/null
+ps -auwx | grep hald >/dev/null 2>/dev/null
 if [ "$?" = "0" ]
 then
  return 0

Modified: pcbsd/trunk/system-overlay/PCBSD/Services/hal/restart.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/Services/hal/restart.sh	2007-09-13 16:48:56 UTC (rev 717)
+++ pcbsd/trunk/system-overlay/PCBSD/Services/hal/restart.sh	2007-09-13 17:06:23 UTC (rev 718)
@@ -2,4 +2,6 @@
 # This script restarts a currently running service
 # Return a "0" on success, or a "1" on failure
 
+/usr/local/etc/rc.d/hald restart
+
 exit 0

Modified: pcbsd/trunk/system-overlay/PCBSD/Services/hal/start.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/Services/hal/start.sh	2007-09-13 16:48:56 UTC (rev 717)
+++ pcbsd/trunk/system-overlay/PCBSD/Services/hal/start.sh	2007-09-13 17:06:23 UTC (rev 718)
@@ -2,5 +2,6 @@
 # This script starts a stopped service
 # Return 0 on success, or "1" on failure 
 
-return 1
+/usr/local/etc/rc.d/hald start
 
+exit 0

Modified: pcbsd/trunk/system-overlay/PCBSD/Services/hal/stop.sh
===================================================================
--- pcbsd/trunk/system-overlay/PCBSD/Services/hal/stop.sh	2007-09-13 16:48:56 UTC (rev 717)
+++ pcbsd/trunk/system-overlay/PCBSD/Services/hal/stop.sh	2007-09-13 17:06:23 UTC (rev 718)
@@ -2,4 +2,7 @@
 # This script stops a started service
 # Return 0 on success, or "1" on failure 
 
-return 1
+
+/usr/local/etc/rc.d/hald stop
+
+exit 0



More information about the Commits mailing list