summaryrefslogtreecommitdiff
path: root/server/pkg/soledad
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2014-11-26 20:23:33 -0200
committerdrebs <drebs@leap.se>2014-11-28 09:39:45 -0200
commit93bd3fb17670c0c8db5b50028ba2b3ce811dcf5d (patch)
treeb28cb8b3211a042520e6b71ad7b84d517acef6f3 /server/pkg/soledad
parent17682563bd30e780cf7d620624a856376d257e83 (diff)
Run daemon as user soledad (#6436).
Diffstat (limited to 'server/pkg/soledad')
-rw-r--r--server/pkg/soledad6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/pkg/soledad b/server/pkg/soledad
index 62b7c5f8..7f48e2c8 100644
--- a/server/pkg/soledad
+++ b/server/pkg/soledad
@@ -20,6 +20,8 @@ PRIVKEY_PATH=/etc/leap/soledad-server.key
TWISTD_PATH=/usr/bin/twistd
HOME=/var/lib/soledad/
SSL_METHOD=TLSv1_METHOD
+USER=soledad
+GROUP=soledad
[ -r /etc/default/soledad ] && . /etc/default/soledad
@@ -31,7 +33,9 @@ test -r /etc/leap/ || exit 0
case "$1" in
start)
echo -n "Starting soledad: twistd"
- start-stop-daemon --start --quiet --exec $TWISTD_PATH -- \
+ start-stop-daemon --start --quiet \
+ --user=$USER --group=$GROUP \
+ --exec $TWISTD_PATH -- \
--pidfile=$PIDFILE \
--logfile=$LOGFILE \
web \