Debian Codegraph @

debian/src/initscripts/etc/init.d/single

raw
1 #! /bin/sh
2 ### BEGIN INIT INFO
3 # Provides: single
4 # Required-Start: $local_fs killprocs
5 # Required-Stop:
6 # Default-Start: 1
7 # Default-Stop:
8 # Short-Description: executed by init(8) upon entering runlevel 1 (single).
9 ### END INIT INFO
10
11 PATH=/sbin:/bin
12
13 . /lib/lsb/init-functions
14
15 do_start() {
16 log_action_msg "Will now switch to single-user mode"
17 exec telinit S
18 }
19
20 case "$1" in
21 start)
22 do_start
23 ;;
24 restart | reload | force-reload)
25 echo "Error: argument '$1' not supported" >&2
26 exit 3
27 ;;
28 stop | status)
29 # No-op
30 ;;
31 *)
32 echo "Usage: $0 start|stop" >&2
33 exit 3
34 ;;
35 esac