~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve server logging.
[tripe]
/
contrib
/
tripe-upstart.in
diff --git
a/contrib/tripe-upstart.in
b/contrib/tripe-upstart.in
index
42d15de
..
8d558f0
100644
(file)
--- a/
contrib/tripe-upstart.in
+++ b/
contrib/tripe-upstart.in
@@
-143,9
+143,15
@@
script
export PATH TRIPEDIR TRIPESOCK TRIPE_SLIPIF
## Start the server, passing lots of arguments.
export PATH TRIPEDIR TRIPESOCK TRIPE_SLIPIF
## 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 -s -p$tripe \
-P$pidfile \
$tripectl -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} \
${keytag+-S-t$keytag} \
${addr+-S-b$addr} ${port+-S-p$port} \
${user+-U$user} ${group+-G$group} \