packages: synergy/synergy-server.init - exec and exit codes

glen glen at pld-linux.org
Mon Jan 23 21:16:27 CET 2012


Author: glen                         Date: Mon Jan 23 20:16:27 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- exec and exit codes

---- Files affected:
packages/synergy:
   synergy-server.init (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/synergy/synergy-server.init
diff -u packages/synergy/synergy-server.init:1.3 packages/synergy/synergy-server.init:1.4
--- packages/synergy/synergy-server.init:1.3	Tue Apr  1 19:00:40 2008
+++ packages/synergy/synergy-server.init	Mon Jan 23 21:16:22 2012
@@ -12,7 +12,7 @@
 # Check that networking is up.
 if ! is_yes "${NETWORKING}"; then
 	echo >&2 "$0: Networking disabled"
-	exit 0
+	exit 3
 fi
 
 SYNERGYS_NAME=${SYNERGYS_NAME:-$(hostname -s)}
@@ -23,4 +23,4 @@
 usleep 300
 killall -9 synergys 2> /dev/null
 
-/usr/bin/synergys --daemon --restart -n ${SYNERGYS_NAME} --config /etc/synergy/layout.conf ${SYNERGYS_OPTS}
+exec /usr/bin/synergys --daemon --restart -n ${SYNERGYS_NAME} --config /etc/synergy/layout.conf ${SYNERGYS_OPTS}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/synergy/synergy-server.init?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list