最終更新:2016-11-18 (金) 17:57:37 (3433d)
initスクリプト
Top / initスクリプト
initramfsに含まれる(initramfs/init)
呼び出し元
メモ
Ubuntu
- exec run-init ${rootmnt} ${init} "$@" ${recovery:+--startup-event=recovery} <${rootmnt}/dev/console >${rootmnt}/dev/console 2>&1
Linux/etc/init.dに入れるスクリプト
#!/bin/bash
#
# chkconfig: 2345 85 15 ← chkconfig で登録する場合に必須
# description: test. ← chkconfig で登録する場合に必須
case "$1" in
start)
echo "Start"
;;
stop)
echo "Stop"
;;
*)
echo $"Usage: HOGE {start|stop|restart}"
esac

