X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=fanfix.sysv;h=3d3b23bb00573c2ffb12d00c61915dcfd645fcad;hb=57f21783818af79797a2c3db600a11f38e4074a1;hp=10be756a8e77f5b189cba115d99c9aaabc624308;hpb=41c3bba7f6fc6f5ec1fa7fe35643c6aace94240d;p=fanfix.git diff --git a/fanfix.sysv b/fanfix.sysv index 10be756..3d3b23b 100755 --- a/fanfix.sysv +++ b/fanfix.sysv @@ -2,10 +2,10 @@ # # fanfix This starts the Fanfix remote service. # -# chkconfig: 2345 10 90 # description: Starts the Fanfix remote service # ### BEGIN INIT INFO +# Default-Start: 3 4 5 # Short-Description: Fanfix service # Description: Starts the Fanfix remote service ### END INIT INFO @@ -37,6 +37,8 @@ start) echo "Fanfix is already running." >&2 false else + [ -e "$OUT" ] && mv "$OUT" "$OUT".previous + [ -e "$ERR" ] && mv "$ERR" "$ERR".previous sudo -u "$USER" -- java -jar "$JAR" --server "$PINCODE" "$PORT" > "$OUT" 2> "$ERR" & echo $! > "$FPID" fi