]> git.pld-linux.org Git - packages/wesnoth.git/commitdiff
- use user and fork options in daemon
authorJarosław Kruk <jareq@pld-linux.org>
Thu, 4 Jan 2007 09:37:48 +0000 (09:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    wesnothd.init -> 1.6

wesnothd.init

index cec1e2259eb668179c58534f922fcdf06c438d60..c73159718a8217b9dc530c22dd0d4a503dd7edaf 100644 (file)
@@ -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
This page took 0.058202 seconds and 4 git commands to generate.