Hello,
Yesterday I set up my new server with Deluge and installed the init script I found on this website. It automatically starts deluged and deluge-webui, but I actually only want to have deluged running. I tried editing the deluge-daemon script a bit, but I can't seem to find the right way not to start deluge-web.
To be clear, it's this script that I want to have "split".
Can anybody help me splitting this init script? Many thanks in advance!
Seperate init script for deluged and deluge-webui
Re: Seperate init script for deluged and deluge-webui
hi,
If you want to do it yourself you will need a bit of understanding about how works bash script.
What you want is to remove all actions concerning :
NAME2="deluge"
DAEMON2=/usr/bin/deluge-web
For some actions you need to remove complete lines and for others (if condition) you need only to remove the test concerning DAEMON2. This is where you need skills with bash to understand what to remove exactly without breaking the thing.
Splitting this init script is a good idea because the mixing of two services in one script is a simple design but not convenient. For example the FreeBSD init script is split : http://dev.deluge-torrent.org/wiki/User ... pt/FreeBSD
I will do it for myself today or tomorrow. I'll post the two scripts here.
If you want to do it yourself you will need a bit of understanding about how works bash script.
What you want is to remove all actions concerning :
NAME2="deluge"
DAEMON2=/usr/bin/deluge-web
For some actions you need to remove complete lines and for others (if condition) you need only to remove the test concerning DAEMON2. This is where you need skills with bash to understand what to remove exactly without breaking the thing.
Splitting this init script is a good idea because the mixing of two services in one script is a simple design but not convenient. For example the FreeBSD init script is split : http://dev.deluge-torrent.org/wiki/User ... pt/FreeBSD
I will do it for myself today or tomorrow. I'll post the two scripts here.
Re: Seperate init script for deluged and deluge-webui
In the Debian ppa (experimental) there is a Deluge package with splitted init scripts. I "converted" my Deluge install so it would fit that init script and it runs pretty well now. It's not perfect, but it works. (I am not going to post the init script for it does not match the Debian installation as described on the wiki page.)