Use dedicated users to run services

This commit is contained in:
2018-11-10 11:34:16 +01:00
parent 516d4899b4
commit 7d7f4ccfc2
7 changed files with 49 additions and 23 deletions

View File

@ -1,10 +1,11 @@
[supervisord]
nodaemon=true
user=root
[program:sshd]
command = /usr/sbin/sshd -D
directory = /fdroid
user = root
user = fdroid
autostart = true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
@ -13,9 +14,9 @@ stderr_logfile_maxbytes=0
[program:fdroid-update]
command = inotifyd /fdroid-update.sh /fdroid/repo:w
command = inotifyd /fdroid/fdroid-update.sh /fdroid/repo:w
directory = /fdroid
user = root
user = fdroid
autostart = true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
@ -23,9 +24,9 @@ stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:darkhttpd]
command = darkhttpd /fdroid/repo
command = darkhttpd /fdroid/repo --port 8080
directory = /fdroid
user = root
user = fdroid
autostart = true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0