6 PIDFILE
="/var/run/apt-cacher-ng.pid"
10 stat_busy
"Starting apt-cacher-ng"
11 PID
="$(pidof -o %PPID /usr/bin/apt-cacher-ng)"
12 if [ -z "$PID" ]; then
13 /usr
/bin
/apt-cacher-ng
-c /etc
/apt-cacher-ng
/
19 echo $
(pidof
-o %PPID
/usr
/bin
/apt-cacher-ng
) > $PIDFILE
20 add_daemon apt-cacher-ng
28 stat_busy
"Stopping apt-cacher-ng"
29 if [ -f $PIDFILE ] && kill -0 $
(cat $PIDFILE); then
30 kill -15 $
(cat $PIDFILE)
43 echo "usage: $0 {start|stop|restart}"