Running Deluge as a service

Specific support for Deluge on Microsoft Windows OS
Post Reply
Bombur
New User
New User
Posts: 4
Joined: Wed Sep 16, 2009 7:08 am

Running Deluge as a service

Post by Bombur »

Hello everyone,

I hope this has not been asked before, but I can not find it anywhere.
Has anybody ever succesfully run Deluge 1.2.3+WebUi as a service on a Win2k-box? If so, is there an easy to follow guide to that or even something automated? Not that I do mind hacking my registry, but I am reluctant to try and mess up the whole system.
deluge001
Member
Member
Posts: 37
Joined: Fri Sep 12, 2008 8:36 am

Re: Running Deluge as a service

Post by deluge001 »

I've been faffing about with winserv.exe for a few hours now, but I've made minimal progress, to the point where I just can't figure out what I'm doing wrong. Some kind of guide or pointer in the right direction would be most welcome.
Keboo

Re: Running Deluge as a service

Post by Keboo »

I have Deluge+WebUI running as a system service on my 2k3 server.

Here is how I set it up.

First I download the Server 2003 Resource Kit Tools from here:
http://www.microsoft.com/download/en/de ... n&id=17657

I installed it in the default location.

In a command prompt I ran:
"C:\Program Files\Windows Resource Kits\Tools\INSTSRV.EXE" Deluge "C:\Program Files\Windows Resource Kits\Tools\srvany.exe "

This created a system service to use.

In the registry I navigated to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Deluge

Next from the Edit menu, I added a string vaue.
Value Name: Application
Data Type : REG_SZ
Edit the string value and enter: "C:\Program Files\Deluge\deluge.exe"

Back in the command prompt, I started my new service:
I ran the command: "net start Deluge"

Finally I would like to give most of this credit to the person who made the post I took most of this information from:
http://forum.vibestreamer.com/viewtopic.php?t=184


To answer the original posters question. The original forum post that I took the information from has similar sets for doing it on Win2k, but as I do not have a a Win2k box running I cannot say whether they will work or not.
ThreatDown
New User
New User
Posts: 6
Joined: Thu Oct 18, 2007 1:04 am

Re: Running Deluge as a service

Post by ThreatDown »

In case anyone comes across this thread via google as I did, a method that should work better for new versions of windows (server 2k8, windows 7/8) is to use nssm instead of srvany, this works great for me in windows 8 so far:

dowload http://nssm.cc/usage
create the deluge service with nssm install deluged. in the window that pops up browse to your deluged.exe and name the service and click install.
then open services.msc, browse to the deluged service > properties > Log On > choose "this account" and put in your windows username and password (I had to do this or else none of my clients would connect).

Then just start the service and you should be good to go. Haven't tested this method much yet, but working well so far.
tetsuo
New User
New User
Posts: 3
Joined: Tue Aug 28, 2012 10:38 pm
Location: Athens, Greece

Re: Running Deluge as a service

Post by tetsuo »

@ThreatDown Many thanks for nssm solution. It works great on Win8 (64bit).
neohidra

Re: Running Deluge as a service

Post by neohidra »

Are there any advantages compared to setting up a task (using Task Scheduler) and starting Deluge at startup?

Why exactly you need Deluge running as a service?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Running Deluge as a service

Post by Cas »

Services will usually have the capability to restart a crashed application.
Post Reply