sshd-start_cmd=/usr/sbin/sshd
sshd-stop_cmd=pkill sshd
-dbus-start:QVPservice -u: localhost-start
+dbus-start:QVPservice -u: fsclean-start localhost-start
echo Starting dbus
- $P /usr/bin/dbus-daemon -- --system
+ $P mkdir -p /var/run/dbus
+ $P /usr/bin/dbus-daemon --system
service -U $target
dbus-stop_cmd=pkill dbus-daemon
cmd=$1
shift
arg=$*
+ exec 1>/dev/console
case "$cmd" in
boot )
echo
esac
}
+# Telinit
+if [ $$ != 1 -a $1 != "-t" ]; then
+ echo "$@" > $FIFO
+ exit
+fi
+
# Handle arguments
TMP=`getopt -n "$0" \
--options hrt \
shift; arg=$*
# Debugging output
-if [ "$TEST" ]; then
+if $TEST; then
echo 'Options'
echo ' test:' $TEST
echo ' reload:' $RELOAD
process $cmd $arg
# Fork listeners
-if [ ! "$RELOAD" ]; then
+if ! $RELOAD; then
# Fork /dev/initctl listener
( exec 0<&- 1<&- 2<&-
initctld $INITCTL |
echo $line > $FIFO
history -s $line
done
- [ "$TEST" ] && break
+ $TEST && break
exec 0</dev/console 2>/dev/console
echo "Respawning on /dev/console.." >&2
sleep 1