Skript <jmenoskriptu>, který je v /etc/init.d/ aktivujeme pomocí
update-rc.d <jmenoskriptu> defaults [NN | SS KK]
NN - priporita startu, výchozí je 20 .. nebo dvojice čísel Startovací a Stopovací priorita
pokud ho chceme odebrat, tak
update-rc.d -f blah remove
#! /bin/sh # /etc/init.d/blah # # Some things that run always touch /var/lock/blah # Carry out specific functions when asked to by the system case "$1" in start) echo "Starting script blah " echo "Could do more here" ;; stop) echo "Stopping script blah" echo "Could do more here" ;; *) echo "Usage: /etc/init.d/blah {start|stop}" exit 1 ;; esac exit 0