mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
update some argument
This commit is contained in:
parent
52f01446b5
commit
e1983d6dd8
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user