Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 376484 Details for
Bug 501986
app-admin/rsyslog-7.6.x - New runscript
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
New rsyslog runscript
rsyslog.initd-r1 (text/plain), 1.56 KB, created by
Thomas Deutschmann (RETIRED)
on 2014-05-06 16:35:09 UTC
(
hide
)
Description:
New rsyslog runscript
Filename:
MIME Type:
Creator:
Thomas Deutschmann (RETIRED)
Created:
2014-05-06 16:35:09 UTC
Size:
1.56 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2014 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >RSYSLOG_CONFIGFILE=${RSYSLOG_CONFIGFILE:-"/etc/rsyslog.conf"} >RSYSLOG_PIDFILE=${RSYSLOG_PIDFILE:-"/run/rsyslogd.pid"} > >command="/usr/sbin/rsyslogd" >command_args="${RSYSLOG_OPTS} -f ${RSYSLOG_CONFIGFILE} -i ${RSYSLOG_PIDFILE}" >start_stop_daemon_args="${RSYSLOG_SSDARGS}" >pidfile="${RSYSLOG_PIDFILE}" >retry="${RSYSLOG_TERMTIMEOUT}" > >required_files=( "${RSYSLOG_CONFIGFILE}" ) > >description="RSYSLOG is the rocket-fast system for log processing (syslog replacement)." > >extra_commands="configtest" >extra_started_commands="rotate" > >description_configtest="Run rsyslogd's internal config check." > >description_rotate="Sends rsyslogd a signal to re-open its log files." > >depend() { > need clock hostname localmount > provide logger >} > >start_pre() { > if [ "${RC_CMD}" != "restart" ]; then > configtest || return 1 > fi >} > >stop_pre() { > if [ "${RC_CMD}" = "restart" ]; then > configtest || return 1 > fi >} > >stop_post() { > rm -f ${RSYSLOG_PIDFILE} >} > >configtest() { > # This will currently only detect fatal errors > # See https://github.com/rsyslog/rsyslog/issues/79 > > local _test_command="${command} -N 999 -f ${RSYSLOG_CONFIGFILE}" > local _retval=0 > > ebegin "Checking rsyslogd's configuration" > ${_test_command} &>/dev/null > _retval=$? > > if [ ${_retval} -ne 0 ]; then > ${_test_command} > fi > > eend ${_retval} "failed, please correct errors above" >} > >rotate() { > ebegin "Re-opening rsyslogd logs" > start-stop-daemon --signal SIGHUP --pidfile "${RSYSLOG_PIDFILE}" > eend $? >}
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 Raw
Actions:
View
Attachments on
bug 501986
: 376484