update some argument

This commit is contained in:
whale 2020-04-29 11:56:28 +08:00
parent 52f01446b5
commit e1983d6dd8

View File

@ -27,7 +27,7 @@ EOL;
$s .= "\nUser=".exec("whoami");
$s .= "\nGroup=".exec("groups | awk '{print $1}'");
$s .= "\nWorkingDirectory=" . getcwd();
$s .= "\nExecStart=php " .getcwd()."/bin/start --disable-console-input";
$s .= "\nExecStart=$(which php) " .getcwd()."/bin/start --disable-console-input";
$s .= "\nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n";
file_put_contents(getcwd()."/resources/zhamao.service", $s);
echo "File successfully generated. Path: ".getcwd()."/resources/zhamao.service\n";