SOURCES: wesnothd.init - use user and fork options in daemon
jareq
jareq at pld-linux.org
Thu Jan 4 10:37:54 CET 2007
Author: jareq Date: Thu Jan 4 09:37:54 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- use user and fork options in daemon
---- Files affected:
SOURCES:
wesnothd.init (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SOURCES/wesnothd.init
diff -u SOURCES/wesnothd.init:1.5 SOURCES/wesnothd.init:1.6
--- SOURCES/wesnothd.init:1.5 Thu Jan 4 09:49:36 2007
+++ SOURCES/wesnothd.init Thu Jan 4 10:37:48 2007
@@ -14,7 +14,7 @@
start() {
if [ ! -f /var/lock/subsys/wesnothd ]; then
msg_starting wesnothd
- daemon "su - wesnothd -s /bin/sh -c '/usr/bin/wesnothd -p 14999 > /dev/null 2>&1 &'"
+ daemon --user wesnothd --fork '/usr/bin/wesnothd -p 14999 > /dev/null 2>&1'
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/wesnothd
else
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/wesnothd.init?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list