From 62fb4cb22b24231b10aa08603ed588a7e81a9a86 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 15 Aug 2011 14:47:16 +0800 Subject: [PATCH] Notify.php --- Notify.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Notify.php b/Notify.php index ed3d519c..0e83ab5e 100644 --- a/Notify.php +++ b/Notify.php @@ -170,7 +170,11 @@ class Pman_Core_Notify extends Pman $cwd = $sn[0] == '/' ? dirname($sn) : dirname(realpath(getcwd() . $sn)); // same as run on.. (so script should end up being same relatively..) $app = $cwd . '/' . basename($_SERVER["SCRIPT_NAME"]) . ' ' . $this->target . '/'. $id; + if ($this->force) { + $app .= ' -f'; + } $cmd = $php . ' ' . $app. ' &'; + echo $cmd . "\n"; $pipe = array(); $p = proc_open($cmd, $descriptorspec, $pipes, $cwd ); -- 2.39.2