Skip to content

Commit 26a7af0

Browse files
committed
Systemd on debian 10 requires that the PID file be owend by root
1 parent f7ac8bc commit 26a7af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualmin-nginx-lib.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ sub setup_php_fcgi_server
17031703
&init::enable_at_boot($name,
17041704
"Start Nginx PHP fcgi server for $d->{'dom'}",
17051705
&command_as_user($d->{'user'}, 0,
1706-
"$envs $cmd >>$log 2>&1 </dev/null & echo \$! >$pidfile"),
1706+
"$envs $cmd >>$log 2>&1 </dev/null")." & echo \$! >$pidfile && chmod +r $pidfile",
17071707
&command_as_user($d->{'user'}, 0,
17081708
"kill `cat $pidfile`")." ; sleep 1",
17091709
undef,

0 commit comments

Comments
 (0)