Blob Blame History Raw
diff -up openwsman-2.2.3/etc/init/openwsmand.sh.in.orig openwsman-2.2.3/etc/init/openwsmand.sh.in
--- openwsman-2.2.3/etc/init/openwsmand.sh.in.orig	2010-04-22 09:36:29.186800378 -0500
+++ openwsman-2.2.3/etc/init/openwsmand.sh.in	2010-04-22 09:38:15.507820659 -0500
@@ -4,15 +4,15 @@
 # Provides: openwsmand
 # Required-Start: $remote_fs
 # Required-Stop: $network
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6 
+# Default-Start:
+# Default-Stop:
 # Short-Description: Openwsman Daemon
 # Description: openwsmand
 #       Start/Stop the Openwsman Daemon
 ### END INIT INFO
 #
 #
-# chkconfig: 2345 36 64
+# chkconfig: - 36 64
 # description: Openwsman Daemon
 # processname: openwsmand
 
@@ -61,7 +61,7 @@ start()
 	if [ "x${FQDN}" = "x" ]; then
 	  FQDN=localhost.localdomain
 	fi
-cat << EOF | sh @SYSCONFDIR@/owsmangencert.sh > /dev/null 2>&1
+cat << EOF | sh @libexecdir@/openwsman/owsmangencert.sh > /dev/null 2>&1
 --
 SomeState
 SomeCity
@@ -145,8 +145,13 @@ case "$1" in
     fi
     ;;
 
+
+   condrestart)
+      [ -e $lockfile ] && restart
+       
+
     *)
-    echo "Usage: $0 {restart|start|stop|reload|force-reload|status}"
+    echo "Usage: $0 {restart|start|stop|reload|force-reload|status|condrestart}"
 esac
 
 if [ $lsb -ne 0 ]; then