use envar for php (PHP)

This commit is contained in:
Simon Vieille 2019-05-02 16:47:39 +02:00
父節點 7e3add8265
當前提交 c947fe01b3
簽署人: deblan
GPG 金鑰 ID: 03383D15A1D31745
共有 1 個檔案被更改,包括 5 行新增1 行删除

查看文件

@ -3,6 +3,10 @@
ACTION=start
PID_PATH=/tmp/remote_i3wm_ws.pid
if [ -z "$PHP" ]; then
PHP=php
fi
ri3wmws_stop() {
if [ -f "$PID_PATH" ]; then
PID=$(cat "$PID_PATH")
@ -23,7 +27,7 @@ ri3wmws_start() {
if [ -f "$PID_PATH" ]; then
printf "Server already started\n"
else
php src/resource/server.php "$REMOTE_I3WM_WS_OPTIONS" &
$PHP src/resource/server.php "$REMOTE_I3WM_WS_OPTIONS" &
PID=$!
printf $PID > "$PID_PATH"