[Solved] Raspbian Stretch Deluge Autostart

General support for problems installing or using Deluge
Post Reply
annomatik
Member
Member
Posts: 10
Joined: Sat Jul 22, 2017 4:37 pm

[Solved] Raspbian Stretch Deluge Autostart

Post by annomatik »

Hi! I'd like to start deluged and deluge-web automatically after each reboot.

This is what I have tried yet, without success:

1) crontab entry with @reboot and the script below --> neither deluged, nor deluge-web start
2) changed /etc/default/deluged, so it would read ENABLE_DELUGED=0 --> probably would just start deluged, but doesn't.
3) changed /etc/rc.local, so it would start the script bellow --> nothing.

How can I do it? Thanks!

This is the script I am using to start deluged and deluge-web manually:

Code: Select all

#!/bin/bash

echo
echo $(date +%F\ %X) Waiting for network...
echo
until ping -c 1 -W 1 8.8.8.8; do sleep 1; done

echo
echo $(date +%F\ %X) starting Deluge...
echo

nohup deluged    -L debug -l /var/log/deluged/deluged.log
nohup deluge-web -L debug -l /var/log/deluged/deluge-web.log
Last edited by annomatik on Fri Jul 20, 2018 2:49 pm, edited 1 time in total.
shamael
Compulsive Poster
Compulsive Poster
Posts: 667
Joined: Sat Oct 08, 2016 9:28 am

Re: Raspbian Stretch Deluge Autostart

Post by shamael »

Hi,

Why not using the Stretch systemd setup?
https://dev.deluge-torrent.org/wiki/Use ... ce/systemd
annomatik
Member
Member
Posts: 10
Joined: Sat Jul 22, 2017 4:37 pm

Re: Raspbian Stretch Deluge Autostart

Post by annomatik »

Perfect, will try that. Thanks!
annomatik
Member
Member
Posts: 10
Joined: Sat Jul 22, 2017 4:37 pm

Re: Raspbian Stretch Deluge Autostart

Post by annomatik »

Thanks, shamael, works great, also helped me with my other problem.
Post Reply