Skip to navigation
How to add init.d system startup script to debian?
07.12.13
Reply
Anonymous
To add a init.d system startup script to debian. example: we like to add the noip script to the system 1. copy the file noip to /etc/init.d ####################################################### #! /bin/sh # . /etc/rc.d/init.d/functions # uncomment/modify for your killproc case "$1" in start) echo "Starting noip2." /usr/local/bin/noip2 ;; stop) echo -n "Shutting down noip2." killproc -TERM /usr/local/bin/noip2 ;; *) echo "Usage: $0 {start|stop}" exit 1 esac exit 0 ####################################################### 2. execute: sudo update-rc.d -f noip defaults
07.12.13
Reply
Anonymous
Information Epoch 1732466028
Using text data files.
Home
Notebook
Contact us