3 # (Re)create directories
4 mkdir
-p /var
/run
/c-icap
5 mkdir
-p /var
/log
/c-icap
9 printf "Starting c-icap server: "
10 start-stop-daemon
-S -q -b -m -p /var
/run
/c-icap.pid \
11 -x /usr
/bin
/c-icap
-- -N
12 [ $?
== 0 ] && echo "OK" ||
echo "FAIL"
15 printf "Stopping c-icap server: "
16 start-stop-daemon
-K -q -p /var
/run
/c-icap.pid
17 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
25 echo "Usage: /etc/init.d/S96cicap {start|stop|restart|reload}"