summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f46ec87)
raw | patch | inline | side by side (parent: f46ec87)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 15 Jan 2008 09:33:59 +0000 (09:33 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 15 Jan 2008 09:33:59 +0000 (09:33 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8343 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-si/gosa-si-client | patch | blob | history |
diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client
index 2608e323efb10c8f564845b8b1642928f34fb486..544030cdbdd2a0786cbf940193d951ffe6ff9817 100755 (executable)
--- a/gosa-si/gosa-si-client
+++ b/gosa-si/gosa-si-client
&read_configfile;
&check_pid;
-open STDIN, '/dev/null' or die "Can’t read /dev/null: $!";
-open STDOUT, '>>/dev/null' or die "Can't write to /dev/null: $!";
-open STDERR, '>>/dev/null' or die "Can't write to /dev/null: $!";
+if ( ! $foreground ) {
+ open STDIN, '/dev/null' or die "Can’t read /dev/null: $!";
+ open STDOUT, '>>/dev/null' or die "Can't write to /dev/null: $!";
+ open STDERR, '>>/dev/null' or die "Can't write to /dev/null: $!";
+}
# restart daemon log file