-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathroundup.rc-debian
More file actions
49 lines (42 loc) · 1021 Bytes
/
roundup.rc-debian
File metadata and controls
49 lines (42 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh -e
#
# roundup Startup script for the roundup http server.
DESC='Roundup HTTP-Server'
BINFILE=roundup-server
EXECUTABLE=/usr/local/bin/$BINFILE
PIDFILE=/var/run/roundup/server.pid
LOGFILE=/var/log/roundup/roundup.log
TRACKERS=tttech=/tttech/org/software/roundup/tttech/
OPTIONS="-- -p 8080 -u roundup -d $PIDFILE -l $LOGFILE $TRACKERS"
test -x $EXECUTABLE || exit 0
start_stop() {
case "$1" in
start)
printf "Starting $DESC:"
start-stop-daemon --start --oknodo --quiet \
--pidfile $PIDFILE \
--exec $EXECUTABLE $OPTIONS
printf " $BINFILE"
printf ".\n"
;;
stop)
printf "Stopping $DESC:"
start-stop-daemon --stop --oknodo --quiet \
--pidfile $PIDFILE \
--exec $EXECUTABLE $OPTIONS
printf " $BINFILE"
printf ".\n"
;;
restart | force-reload)
start_stop stop
sleep 1
start_stop start
;;
*)
printf "Usage: $0 {start|stop|restart|force-reload}\n" >&2
exit 1
;;
esac
}
start_stop "$@"
exit 0