File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # Start aa-proxy-rs daemon
4
+ #
5
+ # For documentation and command line parameters go to:
6
+ # https://github.com/manio/aa-proxy-rs
7
+
8
+ DAEMON=" aa-proxy-rs"
9
+ PIDFILE=" /var/run/$DAEMON .pid"
10
+ AA_PROXY_RS_ARGS=" -c -s60"
11
+
12
+ RETVAL=0
13
+
14
+ case " $1 " in
15
+ start)
16
+ printf " Starting $DAEMON : "
17
+ start-stop-daemon -S -b -q -m -p " $PIDFILE " -x " /usr/bin/$DAEMON " -- $AA_PROXY_RS_ARGS
18
+ RETVAL=$?
19
+ [ $RETVAL = 0 ] && echo " OK" || echo " FAIL"
20
+ ;;
21
+ stop)
22
+ printf " Stopping $DAEMON : "
23
+ start-stop-daemon -K -q -p " $PIDFILE "
24
+ RETVAL=$?
25
+ [ $RETVAL = 0 ] && echo " OK" || echo " FAIL"
26
+ ;;
27
+ restart)
28
+ $0 stop
29
+ $0 start
30
+ ;;
31
+ * )
32
+ echo " Usage: $0 {start|stop}"
33
+ ;;
34
+ esac
35
+
36
+ exit $RETVAL
You can’t perform that action at this time.
0 commit comments