Commit 8d187d9a authored by Vladimir Homutov's avatar Vladimir Homutov
Browse files

Replaced bash-specific redirections.

parent 18e0b9c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ case "$1" in
    SSDOPTS="--quiet --oknodo --background --no-close --make-pidfile --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON"
    DAEMON_ARGS="$URL $BASE $BIND_DN $BIND_PASS $COOKIE $FILTER $REALM"

	if start-stop-daemon --start $SSDOPTS -- $DAEMON_ARGS &>$LOG
	if start-stop-daemon --start $SSDOPTS -- $DAEMON_ARGS > $LOG 2>&1
	then
		echo "$NAME."
	else
+2 −2
Original line number Diff line number Diff line
#!/bin/sh
''''which python2 >/dev/null && exec python2 -u "$0" "$@" &>>$LOG # '''
''''which python  >/dev/null && exec python  -u "$0" "$@" &>>$LOG # '''
''''which python2 >/dev/null && exec python2 -u "$0" "$@" >> $LOG 2>&1 # '''
''''which python  >/dev/null && exec python  -u "$0" "$@" >> $LOG 2>&1 # '''

# Copyright (C) 2014-2015 Nginx, Inc.