From 26a7af0eb8a337474a52a2809bff35e6b9098c08 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 3 Dec 2020 17:58:01 -0800 Subject: [PATCH] Systemd on debian 10 requires that the PID file be owend by root --- virtualmin-nginx-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualmin-nginx-lib.pl b/virtualmin-nginx-lib.pl index 7dc486a..df3dd67 100644 --- a/virtualmin-nginx-lib.pl +++ b/virtualmin-nginx-lib.pl @@ -1703,7 +1703,7 @@ sub setup_php_fcgi_server &init::enable_at_boot($name, "Start Nginx PHP fcgi server for $d->{'dom'}", &command_as_user($d->{'user'}, 0, - "$envs $cmd >>$log 2>&1 $pidfile"), + "$envs $cmd >>$log 2>&1 $pidfile && chmod +r $pidfile", &command_as_user($d->{'user'}, 0, "kill `cat $pidfile`")." ; sleep 1", undef,