-replace sudo with setuidgid in media-monitor
This commit is contained in:
parent
c191bc906f
commit
6a3c3bc334
1 changed files with 2 additions and 1 deletions
|
@ -12,5 +12,6 @@ echo "*** Daemontools: starting daemon"
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
|
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
|
||||||
|
|
||||||
sudo PYTHONPATH=${api_client_path} -u ${media_monitor_user} python -u ${media_monitor_path}${media_monitor_script}
|
export PYTHONPATH=${api_client_path}
|
||||||
|
setuidgid ${media_monitor_user} python -u ${media_monitor_path}${media_monitor_script}
|
||||||
# EOF
|
# EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue