FreeBSD Bugzilla – Attachment 161151 Details for
Bug 203176
sysutils/daemontools: add support for syslog logging to the init script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that pipes svscan into logger(1)
svscan.diff (text/plain), 1.20 KB, created by
Moritz Wilhelmy
on 2015-09-17 16:50:13 UTC
(
hide
)
Description:
Patch that pipes svscan into logger(1)
Filename:
MIME Type:
Creator:
Moritz Wilhelmy
Created:
2015-09-17 16:50:13 UTC
Size:
1.20 KB
patch
obsolete
>--- svscan.bak 2015-09-17 15:47:34.301904781 +0200 >+++ svscan 2015-09-17 15:55:10.203458846 +0200 >@@ -70,6 +70,7 @@ > # > svscan_enable=${svscan_enable-"NO"} > svscan_servicedir=${svscan_servicedir-"/var/service"} >+svscan_syslog="NO" > > start_cmd="svscan_start" > stop_postcmd="svscan_stop_post" >@@ -85,7 +86,9 @@ > echo "Starting svscan." > EP="/usr/bin/env \ > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" >- if [ -z "${svscan_logdir}" ]; then >+ if checkyesno svscan_syslog; then >+ ${EP} /usr/sbin/daemon /bin/sh -c "$command $svscan_servicedir 2>&1 | logger -t svscan &" >/dev/null >+ elif [ -z "${svscan_logdir}" ]; then > ${EP} /usr/sbin/daemon /bin/sh -c "$command $svscan_servicedir 2>&1 | /usr/local/bin/readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................ &" > /dev/null > else > logmax=${svscan_logmax+s$svscan_logmax} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203176
: 161151