#! /bin/sh ### BEGIN INIT INFO # Provides: single # Required-Start: $local_fs $all killprocs # Required-Stop: # Default-Start: 1 # Default-Stop: # Short-Description: executed by init(8) upon entering runlevel 1 (single). ### END INIT INFO setglobal PATH = '/sbin:/bin' source /lib/lsb/init-functions proc do_start { log_action_msg "Will now switch to single-user mode" exec init -t1 S } match $1 { with start do_start with restart|reload|force-reload echo "Error: argument '$1' not supported" > !2 exit 3 with stop|status # No-op with * echo "Usage: $0 start|stop" > !2 exit 3 }