chiark / gitweb /
server/tests.at (server retry): Use the new `WITH_STRACE' macro.
[tripe] / init / tripe-init.in
index 7a21c4ad605df72b6d9c0854f500be88d4250397..c146bdf9646ea57a8e458c0ddc35f262ad3c8421 100755 (executable)
@@ -133,9 +133,15 @@ case "$1" in
     fi
 
     ## Start the server, passing lots of arguments.
+    logopt=
+    case ${syslogp-nil} in nil) ;; *) logopt="$logopt -l" ;; esac
+    case ${logfile+t},${syslogp-nil} in
+      t,*) logopt="$logopt -f$logfile" ;;
+      ,nil) logopt="$logopt -f@logfile@" ;;
+    esac
     $tripectl -D -s -p$tripe \
       -P$pidfile \
-      -f${logfile-@logfile@} \
+      $logopt \
       ${keytag+-S-t$keytag} \
       ${addr+-S-b$addr} ${port+-S-p$port} \
       ${user+-U$user} ${group+-G$group} \