在 Raspberry Pi 上启动时自动启动 deluge 守护进程 1.3.10

Autostart deluge daemon 1.3.10 on boot on Raspberry Pi

我已经学习了关于如何将 raspberry pi 设置到 torrent box 的不同教程,但我认为大多数操作教程都已过时。

我还使用他的命令检查了我的 deluge 守护程序版本:

deluge -v

它returns这个:

deluged: 1.3.10
libtorrent: 0.16.18.0

到目前为止,我已经遵循了 How-To Geek 教程。

Link: http://www.howtogeek.com/142044/how-to-turn-a-raspberry-pi-into-an-always-on-bittorrent-box/

在出现错误后,我已经完全卸载并删除了 deluge 的所有文件。

教程建议使用此命令:

sudo wget -O /etc/default/deluge-daemon http://cdn5.howtogeek.com/wp-content/uploads/gg/up/sshot5151a8c86fb85.txt

但是没有/etc/default/deluge-daemon这样的文件,取而代之的是一个deluged命名文件(新版本可能是deluge-daemon的缩写)

基本上,该命令的作用是将文件 http://cdn5.howtogeek.com/wp-content/uploads/gg/up/sshot5151a8c86fb85.txt 的内容复制到位于 /etc/default/deluge-daemon.

的文件中

因为找不到 deluged-daemon,所以我选择 /etc/default/deluged

/etc/default/deluged原文内容:

# Defaults for deluged initscript
# sourced by /etc/init.d/deluged

# change to 1 to enable daemon
ENABLE_DELUGED=0

文件中提供的内容http://cdn5.howtogeek.com/wp-content/uploads/gg/up/sshot5151a8c86fb85.txt

# Configuration for /etc/init.d/deluge-daemon

# The init.d script will only run if this variable non-empty.
DELUGED_USER="pi"             # !!!CHANGE THIS!!!!

# Should we run at startup?
RUN_AT_STARTUP="YES"

但是这两个文件看起来不同,并且 deluge 守护进程在启动时不会加载。

我使用本指南成功解决了这个问题:http://dev.deluge-torrent.org/wiki/UserGuide/Service/systemd

  1. 按照本指南中的说明进行操作(您可以跳过 deluge-web 说明)。
  2. 请注意 deluge 用户是使用 --home /var/lib/deluge 创建的。
  3. deluge 用户的主目录(相对于 pi其他教程中经常提到的用户)。
  4. 重启