Create a service in UBUNTU for DELUGE-WEB
i just installed Ubuntu 16.04 Server on a old computer i bought for testing proposes.
before , i had Ubuntu 14.04 Desktop, and i like download through torrent with it, and not use my laptop ( a bit old too )
the problem was when i wanted download with torrent in just console mode.
for this, i installed http://deluge-torrent.org/ . Deluge has a module with web interface, and i can manage the torrent client trough web URL.
i didn't like than i had to remain a command in console to use deluge-web. so i created a service for this. this how i created , and what documentation i use.
documentation about parameters: https://www.freedesktop.org/software/systemd/man/systemd.service.html
First: create the file
nano /etc/systemd/system/deluge.service
two: file data:
[Unit] | |
Description=Deluge Bittorrent Web GUI | |
After=network-online.target | |
[Service] | |
User=root | |
Group=dialout | |
Type=simple | |
ExecStart=/usr/bin/deluge-web | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
THREE: ENJOY
sudo systemctl start/stop deluge
KEEP IN MIND : that the name of file , is the name of service.