diff options
author | 2009-07-20 16:14:42 -0400 | |
---|---|---|
committer | 2009-07-20 16:14:42 -0400 | |
commit | b68b61c95192422d8a292b9bb02d68a294885ca9 (patch) | |
tree | 85c1762e3006c2dc9354457d3adfa0d51112fee6 | |
parent | Converted backend status to TINYINT; First try at logging non-execution messa... (diff) | |
download | ingenue-b68b61c95192422d8a292b9bb02d68a294885ca9.tar.gz ingenue-b68b61c95192422d8a292b9bb02d68a294885ca9.tar.bz2 ingenue-b68b61c95192422d8a292b9bb02d68a294885ca9.zip |
Little backend output cleanup
-rwxr-xr-x | backend/backend.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/backend.php b/backend/backend.php index 0750d49..6bf0bd7 100755 --- a/backend/backend.php +++ b/backend/backend.php @@ -40,8 +40,8 @@ if (is_file($pidfile)) { die("Found already running backend PID=$pid.\n"); } if (posix_geteuid() !== 0) - fputs(STDERR, "Not running as root... this is not going to accomplish much."); -if (file_put_contents($pidfile, posix_getpid())) + fputs(STDERR, "Not running as root... this is not going to accomplish much.\n"); +if (@file_put_contents($pidfile, posix_getpid())) $unlinkpidfile=true; require_once(dirname(__FILE__).'/../shared/include/includes.php'); // USE __DIR__ once 5.3.0 is out (and 2 lines down) require_once(BACKEND.'/include/signals.php'); |