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	2011-10-01 23:50:09.000000000 +0200
+++ openfire_src/src/bin/extra/redhat/openfire	2012-11-25 10:50:35.708606233 +0100
@@ -129,7 +129,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
@@ -144,7 +144,7 @@ stop() {
 	echo
 
 	[ $RETVAL -eq 0 -a -f "$OPENFIRE_PIDFILE" ] && rm -f $OPENFIRE_PIDFILE
-	[ $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() {
@@ -154,7 +154,7 @@ restart() {
 }
 
 condrestart() {
-	[ -e "/var/lock/subsys/openfire" ] && restart
+	[ -e "/var/run/openfire" ] && restart
 	return 0
 }