deluge: fix system accounts and runit services

This commit is contained in:
Alessio Sergi 2017-03-16 15:30:30 +01:00
parent a8f5b6be9e
commit efb74bf577
3 changed files with 7 additions and 2 deletions

View file

@ -1,2 +1,3 @@
#!/bin/sh
exec chpst -u delugeweb:delugeweb deluge-web -d 2>&1
sv check deluged >/dev/null || exit 1
exec chpst -u deluge:deluge deluge-web 2>&1

View file

@ -1,2 +1,5 @@
#!/bin/sh
set -e
mkdir -p /var/lib/deluge
chown deluge:deluge /var/lib/deluge
exec chpst -u deluge:deluge deluged -d 2>&1

View file

@ -4,8 +4,9 @@ version=1.3.13
revision=1
noarch=yes
build_style=python2-module
system_accounts="deluge delugeweb"
pycompile_module="deluge"
system_accounts="deluge"
deluge_homedir="/var/lib/deluge"
hostmakedepends="intltool python-setuptools"
makedepends="python-setuptools"
depends="pygtk python-setuptools python-chardet python-xdg Twisted libtorrent-rasterbar-python xdg-utils"