File vboxtoolinit-0.3.patch of Package vboxtool

--- script/vboxtoolinit.orig	2009-02-20 00:14:23.000000000 +0200
+++ script/vboxtoolinit	2009-02-20 00:21:15.000000000 +0200
@@ -30,8 +30,8 @@
 
 ### BEGIN INIT INFO
 # Provides:          vboxtool
-# Required-Start:    $syslog $local_fs
-# Required-Stop:     $syslog $local_fs
+# Required-Start:    $syslog $local_fs $remote_fs
+# Required-Stop:     $syslog $local_fs $remote_fs
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Description:       Controls VirtualBox sessions
@@ -99,6 +99,41 @@
 restart)
   restart
   ;;  
+reload)
+        echo -n "Reloading service is not implemented yet "
+        ## Like force-reload, but if daemon does not support
+        ## signaling, do nothing (!)
+
+        # If it supports signaling:
+        #echo -n "Reload service FOO "
+        #/sbin/killproc -HUP $FOO_BIN
+        #touch /var/run/FOO.pid
+        #rc_status -v
+
+        ## Otherwise if it does not support reload:
+        #rc_failed 3
+        #rc_status -v
+        ;;
+status)
+        echo -n "Checking for service status is not implemented yet "
+        #echo -n "Checking for service FOO "
+        ## Check status with checkproc(8), if process is running
+        ## checkproc will return with exit status 0.
+
+        # Return value is slightly different for the status command:
+        # 0 - service up and running
+        # 1 - service dead, but /var/run/  pid  file exists
+        # 2 - service dead, but /var/lock/ lock file exists
+        # 3 - service not running (unused)
+        # 4 - service status unknown :-(
+        # 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)
+
+        # NOTE: checkproc returns LSB compliant status values.
+        #/sbin/checkproc $FOO_BIN
+        # NOTE: rc_status knows that we called this init script with
+        # "status" option and adapts its messages accordingly.
+        #rc_status -v
+        ;;
 *)
   ;;  
 esac
openSUSE Build Service is sponsored by