use envar for php (PHP)
This commit is contained in:
parent
7e3add8265
commit
c947fe01b3
|
@ -3,6 +3,10 @@
|
||||||
ACTION=start
|
ACTION=start
|
||||||
PID_PATH=/tmp/remote_i3wm_ws.pid
|
PID_PATH=/tmp/remote_i3wm_ws.pid
|
||||||
|
|
||||||
|
if [ -z "$PHP" ]; then
|
||||||
|
PHP=php
|
||||||
|
fi
|
||||||
|
|
||||||
ri3wmws_stop() {
|
ri3wmws_stop() {
|
||||||
if [ -f "$PID_PATH" ]; then
|
if [ -f "$PID_PATH" ]; then
|
||||||
PID=$(cat "$PID_PATH")
|
PID=$(cat "$PID_PATH")
|
||||||
|
@ -23,7 +27,7 @@ ri3wmws_start() {
|
||||||
if [ -f "$PID_PATH" ]; then
|
if [ -f "$PID_PATH" ]; then
|
||||||
printf "Server already started\n"
|
printf "Server already started\n"
|
||||||
else
|
else
|
||||||
php src/resource/server.php "$REMOTE_I3WM_WS_OPTIONS" &
|
$PHP src/resource/server.php "$REMOTE_I3WM_WS_OPTIONS" &
|
||||||
PID=$!
|
PID=$!
|
||||||
|
|
||||||
printf $PID > "$PID_PATH"
|
printf $PID > "$PID_PATH"
|
||||||
|
|
Loading…
Reference in a new issue