linux/scripts/init/tracd

28 lines
722 B
Plaintext
Raw Permalink Normal View History

2014-10-10 16:35:33 +02:00
#!/bin/sh
### BEGIN INIT INFO
# Provides: tracd
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Trac Server
# X-Author: Adrian Kousz, 2014
### END INIT INFO
USER=trac
2014-10-10 18:23:53 +02:00
GROUP=$(id -gn $USER)
2014-10-10 16:35:33 +02:00
PIDFILE=/run/tracd.pid
PRIO=5
UMASK=02
2014-10-10 18:23:53 +02:00
#CMD="tracd -d --umask=$UMASK --pidfile='$PIDFILE' --user=$USER --group=$GROUP \
2014-10-10 16:35:33 +02:00
# --basic-auth='*,/home/data/trac/htpasswd,Arterop - Login' \
2014-10-10 18:23:53 +02:00
# -p 8000 -e /home/data/trac"
2014-10-10 16:35:33 +02:00
# With AccountManagerPlugin:
2014-10-10 18:23:53 +02:00
CMD="tracd -d --umask=$UMASK --pidfile='$PIDFILE' --user=$USER --group=$GROUP \
-p 8000 -e /home/data/trac"
2014-10-10 16:35:33 +02:00
/etc/inithelpers/daemon.sh "$1" "$PIDFILE" "$CMD" "$PRIO" "$UMASK"