0

I've red a few tutorials on how to set P2P clients up, specifically Deluge. For some reason all of them say to register it as a service. Why is this? I've just been starting it manually in the background and this seems like a much smarter idea for control.

One example from https://sbcguides.com/install-deluge-on-raspberry-pi/

Now, lets stop the services and Deluge components from running so we can make some needed changes.

sudo systemctl stop deluged sudo systemctl stop deluge-web

What's the point? In the connection manager of deluge it calls itself a daemon, so is it automatically a daemon?

5
  • If you find it smarter to start Delug manually, then do it. Some people think, it is polite to keep the service up with the startup of the system. The more bitTorrent peers are active, the better it is for all. That's the spirit of the community; IMHO. Perhaps you have to pay for network traffic, or you do not trust bittorrent or a continuously open network connection. Seriously, if you don't want to use it as a service, just let it be. – Peter Paul Kiefer Feb 10 at 16:11
  • To the title question: Something should be registered as a service, if you want to start it with the system boot. -- To the last question: I don't know really but I guess, if you start a transfer, delug is in daemon mode to avoid stopping the download/upload when stopping the GUI. I often use Transmission. Once I started a download the deamon stays as a Destop symbol even if I close the Window. But I doubt that is done with a service. Just by running der Transmission server in background. I did not create an answer, as the question is oppinonated IMHO. – Peter Paul Kiefer Feb 10 at 16:19
  • @PeterPaulKiefer to my understanding Linux (which Raspbian is) uses the name "daemon" where as Windows calls them "services". Is this correct? Is Debian/Raspbian an exception? In the linked article it states "Create a new service to run the Deluge daemon" which I find confusing. – HoisZyrian Feb 19 at 7:59
  • I don't know whether a unix deamon is like a Windows service because, I don't know how a windows service is defined. A Unix/Linux deamon is a process which runs in the background, ie. its parent process is the init process (with PID 0) and there are no io channels attached to a terminal. You can only interact with Signals (kill command), network , custom io or inter process communicatiion IPC with such a process. – Peter Paul Kiefer Feb 19 at 9:01
  • On linux the term service is used for modules that are initialized on startup. Often they are started in background - as a deamon. But the imported thing is, that services are started automatically when the raspi is booted and you have no choice to not start it. If you don't configured it as a service, you can start is manually if you want. – Peter Paul Kiefer Feb 19 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.