LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File openfire-subsys.patch of Package openfire (Project server:messaging)

diff -Pdpru openfire_src.orig/src/bin/extra/redhat/openfire openfire_src/src/bin/extra/redhat/openfire
--- openfire_src.orig/src/bin/extra/redhat/openfire	2013-02-06 21:52:04.000000000 +0100
+++ openfire_src/src/bin/extra/redhat/openfire	2013-02-24 13:03:04.184853909 +0100
@@ -130,7 +130,7 @@ start() {
 
 	echo
 
-	[ $RETVAL -eq 0 -a -d /var/lock/subsys ] && touch /var/lock/subsys/openfire
+	[ $RETVAL -eq 0 -a -d /var/run ] && touch /var/run/openfire
 
 	sleep 1 # allows prompt to return
 	cd $OLD_PWD
@@ -157,7 +157,7 @@ stop() {
 	RETVAL=$?
 	echo
 
-	[ $RETVAL -eq 0 -a -f "/var/lock/subsys/openfire" ] && rm -f /var/lock/subsys/openfire
+	[ $RETVAL -eq 0 -a -f "/var/run/openfire" ] && rm -f /var/run/openfire
 }
 
 restart() {
@@ -167,7 +167,7 @@ restart() {
 }
 
 condrestart() {
-	[ -e "/var/lock/subsys/openfire" ] && restart
+	[ -e "/var/run/openfire" ] && restart
 	return 0
 }