Runleveleditor

Aus Weis nix
Wechseln zu: Navigation, Suche
  • add a Header like this to your Script:

### BEGIN INIT INFO # Provides: defaultdaemon # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO

  • sudo update-rc.d -f <scriptname> start 99 2 3 4 5 . stop 19 6 .
    • the above forces the script to be started on POS 99 in RL 2345 and to be stopped as 19th in RL 6
  • sudo aptitude install sysv-rc-conf