diff --git a/daemonise.sh b/daemonise.sh new file mode 100644 index 00000000..2cda800a --- /dev/null +++ b/daemonise.sh @@ -0,0 +1,5 @@ +#!/usr/bin/bash + +cd /usr/local/phpci/phpci +PATH=/usr/local/phpci:$PATH +nohup php ./daemonise phpci:daemonise >/dev/null 2>&1 & echo $! > /usr/local/phpci/phpci.daemonise.pid diff --git a/daemonise_stop.sh b/daemonise_stop.sh new file mode 100644 index 00000000..88532059 --- /dev/null +++ b/daemonise_stop.sh @@ -0,0 +1,3 @@ +#!/usr/bin/bash + +kill `ps -T \`cat /usr/local/phpci/phpci.daemonise.pid\` | sed 's/^ *\([0-9]*\).*/\1/' | tr '\n' ' '` \ No newline at end of file