diff --git a/debian/scripts/koha-functions.sh b/debian/scripts/koha-functions.sh index 8687845aa5..082d3628fa 100755 --- a/debian/scripts/koha-functions.sh +++ b/debian/scripts/koha-functions.sh @@ -269,6 +269,7 @@ is_plack_running() local instancename=$1 if start-stop-daemon --pidfile "/var/run/koha/${instancename}/plack.pid" \ + --user="$instancename-koha" \ --status ; then return 0 else @@ -292,6 +293,7 @@ is_z3950_running() local instancename=$1 if start-stop-daemon --pidfile "/var/run/koha/${instancename}/z3950-responder.pid" \ + --user="$instancename-koha" \ --status ; then return 0 else diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack index e541d44178..90da6cbd36 100755 --- a/debian/scripts/koha-plack +++ b/debian/scripts/koha-plack @@ -144,7 +144,7 @@ stop_plack() log_daemon_msg "Stopping Plack daemon for ${instancename}" - if start-stop-daemon --pidfile ${PIDFILE} --stop --retry=TERM/30/KILL/5; then + if start-stop-daemon --pidfile ${PIDFILE} --user="${instancename}-koha" --stop --retry=TERM/30/KILL/5; then log_end_msg 0 else log_end_msg 1