Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/syslogd
Context not available. | |||||
extra_commands="reload" | extra_commands="reload" | ||||
sockfile="/var/run/syslogd.sockets" | sockfile="/var/run/syslogd.sockets" | ||||
privsockfile="/var/run/syslogd.privsockets" | |||||
evalargs="rc_flags=\"\`set_socketlist\` \$rc_flags\"" | evalargs="rc_flags=\"\`set_socketlist\` \$rc_flags\"" | ||||
syslogd_precmd() | syslogd_precmd() | ||||
Context not available. | |||||
# Create default list of syslog sockets to watch | # Create default list of syslog sockets to watch | ||||
# | # | ||||
( umask 022 ; > $sockfile ) | ( umask 022 ; > $sockfile ) | ||||
( umask 022 ; > $privsockfile ) | |||||
# If running named(8) or ntpd(8) chrooted, added appropriate | # If running named(8) or ntpd(8) chrooted, added appropriate | ||||
# syslog socket to list of sockets to watch. | # syslog socket to list of sockets to watch. | ||||
Context not available. | |||||
fi | fi | ||||
done | done | ||||
# We can also provide logging facilities to jails | |||||
# Jails might need a log socket for privileged applications too | |||||
dch: s/priviledged/privileged/ | |||||
Not Done Inline ActionsComments seems to be indented in a slightly different way in this file. Could you new comments in a similar fashion to maintain a uniform style? 0mp: Comments seems to be indented in a slightly different way in this file. Could you new comments… | |||||
for _j in $altlog_jaillist; do | |||||
_ldir=`jls -aj $_j path 2>/dev/null` | |||||
Done Inline ActionsThis line seems to be indented with spaces, and subsequent lines with a mix of tabs -- these should be entirely tabs kevans: This line seems to be indented with spaces, and subsequent lines with a mix of tabs -- these… | |||||
Not Done Inline Actionsjls -aj foo path doesn't return anything useful if the jail isn't running, so we should probably silence the error here. freebsd_igalic.co: `jls -aj foo path` doesn't return anything useful if the jail isn't running, so we should… | |||||
echo "${_ldir}/var/run/log" >> $sockfile | |||||
echo "${_ldir}/var/run/logpriv" >> $privsockfile | |||||
done | |||||
# If other sockets have been provided, change run_rc_command()'s | # If other sockets have been provided, change run_rc_command()'s | ||||
# internal copy of $syslogd_flags to force use of specific | # internal copy of $syslogd_flags to force use of specific | ||||
# syslogd sockets. | # syslogd sockets. | ||||
Context not available. | |||||
echo "/var/run/log" >> $sockfile | echo "/var/run/log" >> $sockfile | ||||
eval $evalargs | eval $evalargs | ||||
fi | fi | ||||
if [ -s $privsockfile ]; then | |||||
echo "/var/run/logpriv" >> $privsockfile | |||||
eval $evalargs | |||||
fi | |||||
return 0 | return 0 | ||||
} | } | ||||
Context not available. | |||||
for _s in `cat $sockfile | tr '\n' ' '` ; do | for _s in `cat $sockfile | tr '\n' ' '` ; do | ||||
_socketargs="-l $_s $_socketargs" | _socketargs="-l $_s $_socketargs" | ||||
done | done | ||||
for _s in `cat $privsockfile | tr '\n' ' '` ; do | |||||
_socketargs="-S $_s $_socketargs" | |||||
done | |||||
echo $_socketargs | echo $_socketargs | ||||
} | } | ||||
load_rc_config $name | load_rc_config $name | ||||
Context not available. |
s/priviledged/privileged/