summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-01-23 15:29:24 +0100
committerAndrew Dolgov <[email protected]>2008-01-23 15:29:24 +0100
commit73d3b9b1f6a4fb509af4085a9944713aff4f7655 (patch)
tree9c80dfae472fed457b61a27d967a69698a3abf6e /update_daemon2.php
parent884c0a367b17d22d154fdb022c496b3e4ac777a8 (diff)
update_daemon2: don't expect client part to be executable
Diffstat (limited to 'update_daemon2.php')
-rw-r--r--update_daemon2.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_daemon2.php b/update_daemon2.php
index 68989c8e4..d422c5368 100644
--- a/update_daemon2.php
+++ b/update_daemon2.php
@@ -13,6 +13,7 @@
define('MAX_JOBS', 2);
define('CLIENT_PROCESS', './update_daemon2_client.php SRV_RUN_OK');
define('SPAWN_INTERVAL', DAEMON_SLEEP_INTERVAL);
+ define('PHP_EXECUTABLE', '/usr/bin/php');
$running_jobs = 0;
$last_checkpoint = -1;
@@ -69,7 +70,7 @@
} else {
pcntl_signal(SIGCHLD, SIG_IGN);
pcntl_signal(SIGINT, SIG_DFL);
- passthru(CLIENT_PROCESS);
+ passthru(PHP_EXECUTABLE . ' ' . CLIENT_PROCESS);
exit(0);
}
}