From e52be4183d8054caeab606092814342bf092d6d5 Mon Sep 17 00:00:00 2001 From: CiaranG Date: Sat, 6 Sep 2008 16:22:42 -0400 Subject: A working stopdaemons.sh, and no parameter needed for startdaemons.sh darcs-hash:20080906202242-f6e2c-8f3d04c181ef4bffc1727f3333a3bfe5766bda6b.gz --- scripts/getpiddir.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 scripts/getpiddir.php (limited to 'scripts/getpiddir.php') diff --git a/scripts/getpiddir.php b/scripts/getpiddir.php new file mode 100755 index 000000000..b4dda2254 --- /dev/null +++ b/scripts/getpiddir.php @@ -0,0 +1,32 @@ +#!/usr/bin/env php +. + */ + +# Abort if called from a web server +if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) { + print "This script must be run from the command line\n"; + exit(); +} + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); +define('LACONICA', true); + +require_once(INSTALLDIR . '/lib/common.php'); + +echo common_config('daemon','piddir'); -- cgit v1.2.3-54-g00ecf