linux - Why is a deluge startup script necessary? -


i'm working on making spare raspberry pi headless bittorrent box, using deluge.

most guides on setting deluge on linux include custom startup script run @ boot. however, when you're ssh'd pi, can start deluged daemon typing in "deluged".

however, when wrote basic bash script ran command, put in /etc/init.d/ , added using update-rc.d, didn't work.

nano /etc/init.d/startdeluged.sh chmod 755 /etc/init.d/startdeluged.sh update-rc.d startdeluged.sh defaults 

the bash script contained this:

#!/bin/sh  deluged exit 

i'm new setting startup scripts on linux, , i'm wondering why special script necessary when running command in terminal has same effect. have user entering command?

you must add begin init infos after #!/bin/sh. looks :

### begin init info # provides:          scriptname # 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 @ boot time # description:       enable service provided daemon. ### end init info 

more infos there : https://wiki.debian.org/lsbinitscripts

the script @ page may interest : http://dev.deluge-torrent.org/wiki/userguide/service/debianubuntuinitd


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -