git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/init.d/infinoted
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/infinoted')
-rwxr-xr-xinit.d/infinoted4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d/infinoted b/init.d/infinoted
index 2600080..7bce861 100755
--- a/init.d/infinoted
+++ b/init.d/infinoted
@@ -26,6 +26,8 @@
# startup, so the LSB startup line might look a bit chaotic.
# Unfortunately, same as the location of the PID file, this is
# hardcoded. *claps*
+# Workaround _with_ start-stop-daemon: Pipe around a bit involving
+# logger.
#-------------------------------------------------------------------------
# Do NOT "set -e"
@@ -71,7 +73,7 @@ do_start()
start-stop-daemon -c $SCRIPTUSER --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \
|| return 1
start-stop-daemon -c $SCRIPTUSER --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \
- $DAEMON_ARGS \
+ $DAEMON_ARGS < /dev/null 2>&1|logger 2>/dev/null\
|| return 2
}