This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
packages:userscripts [2011-02-01 19:23] SamChi - added dropbox example |
packages:userscripts [2011-02-02 21:37] (current) SamChi - note about restart and reload |
||
---|---|---|---|
Line 7: | Line 7: | ||
===== how to use ===== | ===== how to use ===== | ||
- | Create ~/.config/init.d/script_name. It must accept one argument, it will be either "start" or "stop". | + | Create ~/.config/init.d/script_name.init. It must accept one argument, it will be either "start" or "stop". Scripts must also allow "restart" and "reload" arguments, but are not required to perform any action in those cases. |
Line 15: | Line 15: | ||
==== irssi ==== | ==== irssi ==== | ||
- | ~/.config/init.d/irssi | + | ~/.config/init.d/irssi.init |
Line 65: | Line 65: | ||
==== dropbox ==== | ==== dropbox ==== | ||
- | ~/.config/init.d/dropbox | + | ~/.config/init.d/dropbox.init |
Line 79: | Line 79: | ||
stop) | stop) | ||
exec /sbin/start-stop-daemon --stop \ | exec /sbin/start-stop-daemon --stop \ | ||
- | --retry TERM/10/TERM/60/KILL/10 -s TERM \ | + | --retry TERM/2/TERM/6/KILL/2 -s TERM \ |
--pidfile $HOME/.dropbox/dropbox.pid | --pidfile $HOME/.dropbox/dropbox.pid | ||
;; | ;; |