#! /bin/sh ### BEGIN INIT INFO # Provides: rc.local # Required-Start: $all # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Run /etc/rc.local if it exist ### END INIT INFO setvar PATH = "/sbin:/usr/sbin:/bin:/usr/bin" source /lib/init/vars.sh source /lib/lsb/init-functions proc do_start { if test -x /etc/rc.local { test $VERBOSE != no && log_begin_msg "Running local boot scripts (/etc/rc.local)" /etc/rc.local setvar ES = "$Status" test $VERBOSE != no && log_end_msg $ES return $ES } } 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 exit 0 with * echo "Usage: $0 start|stop" >&2 exit 3 }