Debian Codegraph @

debian/src/bootlogd/etc/init.d/stop-bootlogd

raw
1 #! /bin/sh
2 ### BEGIN INIT INFO
3 # Provides: stop-bootlogd
4 # Required-Start: $local_fs $all
5 # Required-Stop:
6 # Default-Start: 2 3 4 5
7 # Default-Stop:
8 # Short-Description: Stop bootlogd
9 # Description: See the init.d/bootlogd script
10 ### END INIT INFO
11
12 NAME=stop-bootlogd
13 DAEMON=/sbin/bootlogd
14
15 [ -x "$DAEMON" ] || exit 0
16 [ -d /run/systemd/system ] && exit 0
17
18 case "$1" in
19 start)
20 /etc/init.d/bootlogd stop
21 ;;
22 stop | restart | force-reload)
23 # No-op
24 ;;
25 status)
26 exec /etc/init.d/bootlogd status
27 ;;
28 *)
29 echo "Usage: $NAME {start|stop|restart|force-reload}" >&2
30 exit 3
31 ;;
32 esac
33
34 :