diff options
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/trojan/files/trojan.initd | 5 | ||||
-rw-r--r-- | net-proxy/trojan/trojan-1.16.0-r1.ebuild (renamed from net-proxy/trojan/trojan-1.16.0.ebuild) | 0 |
2 files changed, 4 insertions, 1 deletions
diff --git a/net-proxy/trojan/files/trojan.initd b/net-proxy/trojan/files/trojan.initd index 2990245430db..c87f6576d6bf 100644 --- a/net-proxy/trojan/files/trojan.initd +++ b/net-proxy/trojan/files/trojan.initd @@ -20,6 +20,7 @@ depend() { start() { ebegin "Starting Trojan, Log File: ${TJ_LOG}" start-stop-daemon --start -b \ + --user nobody --group nobody \ -1 "${TJ_LOG}" -2 "${TJ_LOG}" \ -m -p "${TJ_PIDFILE}" \ --exec /usr/bin/trojan -- "${TJ_CONFIG}" @@ -28,6 +29,8 @@ start() { stop() { ebegin "Stopping Trojan" - start-stop-daemon --stop -p "${TJ_PIDFILE}" + start-stop-daemon --stop \ + --user nobody --group nobody \ + -p "${TJ_PIDFILE}" eend $? } diff --git a/net-proxy/trojan/trojan-1.16.0.ebuild b/net-proxy/trojan/trojan-1.16.0-r1.ebuild index 21f494f1364d..21f494f1364d 100644 --- a/net-proxy/trojan/trojan-1.16.0.ebuild +++ b/net-proxy/trojan/trojan-1.16.0-r1.ebuild |