summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Pedroni <paolo.pedroni@iol.it>2016-02-12 11:19:33 +0100
committerKristian Fiskerstrand <k_f@gentoo.org>2016-02-16 18:51:04 +0100
commitb9d41d1974b7f60a90c62e354c5a8e849a727c6e (patch)
treea49fd0df0464d5dc04d27e560509113e9cd78e0e /net-p2p/deluge
parentnet-p2p/deluge: remove old (diff)
downloadgentoo-b9d41d1974b7f60a90c62e354c5a8e849a727c6e.tar.gz
gentoo-b9d41d1974b7f60a90c62e354c5a8e849a727c6e.tar.bz2
gentoo-b9d41d1974b7f60a90c62e354c5a8e849a727c6e.zip
net-p2p/deluge: add umask values to openrc script (Fixes bug #566862)
Thanks to Scott Jones <morbidsvt@gmail.com>
Diffstat (limited to 'net-p2p/deluge')
-rw-r--r--net-p2p/deluge/files/deluged.conf1
-rw-r--r--net-p2p/deluge/files/deluged.init1
2 files changed, 2 insertions, 0 deletions
diff --git a/net-p2p/deluge/files/deluged.conf b/net-p2p/deluge/files/deluged.conf
index 0918f45fc7ff..21b375d5c97f 100644
--- a/net-p2p/deluge/files/deluged.conf
+++ b/net-p2p/deluge/files/deluged.conf
@@ -2,6 +2,7 @@
# Change this to the user you want to run deluged as.
# You may specify a group too, after a colon
DELUGED_USER=""
+# DELUGED_UMASK="0002"
# DELUGED_OPTS="-p 58846"
DELUGEUI_START="false"
DELUGEUI_OPTS="-u web"
diff --git a/net-p2p/deluge/files/deluged.init b/net-p2p/deluge/files/deluged.init
index e60945df1558..24f0a123eddf 100644
--- a/net-p2p/deluge/files/deluged.init
+++ b/net-p2p/deluge/files/deluged.init
@@ -41,6 +41,7 @@ start() {
ebegin "Starting Deluged"
start-stop-daemon --start --user "${DELUGED_USER%:*}" \
--name deluged --pidfile /var/run/deluged.pid --background --make-pidfile \
+ ${DELUGED_UMASK:+--umask ${DELUGED_UMASK}} \
--exec /usr/bin/deluged -e HOME="${DELUGED_USER_HOME}" -- --do-not-daemonize "${DELUGED_OPTS}"
eend $?