Skip to content

Commit

Permalink
Systemd on debian 10 requires that the PID file be owend by root
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Dec 4, 2020
1 parent f7ac8bc commit 26a7af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualmin-nginx-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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 </dev/null & echo \$! >$pidfile"),
"$envs $cmd >>$log 2>&1 </dev/null")." & echo \$! >$pidfile && chmod +r $pidfile",
&command_as_user($d->{'user'}, 0,
"kill `cat $pidfile`")." ; sleep 1",
undef,
Expand Down

0 comments on commit 26a7af0

Please sign in to comment.