diff --git a/scripts/init.d/pixit b/scripts/init.d/pixit index c372b0d..4046168 100755 --- a/scripts/init.d/pixit +++ b/scripts/init.d/pixit @@ -9,19 +9,20 @@ # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Pixit -# Description: External GPU fan control +# Description: Pixit Game ### END INIT INFO . /lib/lsb/init-functions -DAEMON=/usr/bin/sudo +DAEMON=/home/gamer/pixit/server.py +USER=gamer NAME=pixit DESC="Pixit" -PARAMS="-u gamer -g gamer /home/gamer/pixit/server.py daemon" +PARAMS="daemon" start() { log_daemon_msg "Starting $DESC" "$NAME" - start-stop-daemon --start --quiet --background --pidfile /var/run/$NAME.pid --make-pidfile --exec $DAEMON -- $PARAMS + start-stop-daemon --start --quiet --background --pidfile /var/run/$NAME.pid --make-pidfile --chuid "$USER" --exec "$DAEMON" -- $PARAMS log_end_msg $? } diff --git a/tpl/header.tpl b/tpl/header.tpl index 2d1c16a..35c8c94 100644 --- a/tpl/header.tpl +++ b/tpl/header.tpl @@ -1,5 +1,5 @@ - dixit + pixit {if:waiting}{endif}