Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 399960 Details for
Bug 544766
app-admin/syslog-ng: add USE filecaps and run with minimal privileges by default
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init.d
syslog-ng.rc6 (text/plain), 2.15 KB, created by
Nikoli
on 2015-03-28 16:03:17 UTC
(
hide
)
Description:
init.d
Filename:
MIME Type:
Creator:
Nikoli
Created:
2015-03-28 16:03:17 UTC
Size:
2.15 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2015 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/3.6/syslog-ng.rc6,v 1.2 2014/12/18 19:51:36 mr_bones_ Exp $ > >SYSLOG_NG_CONFIGFILE=${SYSLOG_NG_CONFIGFILE:-/etc/syslog-ng/${RC_SVCNAME}.conf} >SYSLOG_NG_STATEFILE_DIR=${SYSLOG_NG_STATEFILE_DIR:-/var/lib/${RC_SVCNAME}} >SYSLOG_NG_STATEFILE=${SYSLOG_NG_STATEFILE:-${SYSLOG_NG_STATEFILE_DIR}/${RC_SVCNAME}.persist} >SYSLOG_NG_PIDFILE_DIR=${SYSLOG_NG_PIDFILE_DIR:-/var/run/${RC_SVCNAME}} >SYSLOG_NG_PIDFILE=${SYSLOG_NG_PIDFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.pid} >SYSLOG_NG_CONTROLFILE=${SYSLOG_NG_CONTROLFILE:-${SYSLOG_NG_PIDFILE_DIR}/${RC_SVCNAME}.ctl} > >SYSLOG_NG_GROUP=${SYSLOG_NG_GROUP:-${RC_SVCNAME}} >SYSLOG_NG_USER=${SYSLOG_NG_USER:-${RC_SVCNAME}} > >command="/usr/sbin/syslog-ng" >command_args="--persist-file \"${SYSLOG_NG_STATEFILE}\" --cfgfile \"${SYSLOG_NG_CONFIGFILE}\" --control \"${SYSLOG_NG_CONTROLFILE}\" --pidfile \"${SYSLOG_NG_PIDFILE}\" ${SYSLOG_NG_OPTS}" >extra_commands="checkconfig" >extra_started_commands="reload" >pidfile="${SYSLOG_NG_PIDFILE}" >start_stop_daemon_args="--user \"${SYSLOG_NG_USER}\":\"${SYSLOG_NG_GROUP}\"" >description="Syslog-ng is a syslog replacement with advanced filtering features." >description_checkconfig="Check the configuration file that will be used by \"start\"" >description_reload="Reload the configuration without exiting" >required_files="${SYSLOG_NG_CONFIGFILE}" > >depend() { > use clock > need hostname localmount > after bootmisc > provide logger >} > >checkconfig() { > ebegin "Checking your configfile (${SYSLOG_NG_CONFIGFILE})" > syslog-ng -s -f "${SYSLOG_NG_CONFIGFILE}" > eend $? "Configuration error. Please fix your configfile (${SYSLOG_NG_CONFIGFILE})" >} > >start_pre() { > checkconfig || return 1 > checkpath \ > -d \ > --mode 0700 \ > --owner "${SYSLOG_NG_USER}:${SYSLOG_NG_GROUP}" \ > "${SYSLOG_NG_STATEFILE_DIR}" \ > "${SYSLOG_NG_PIDFILE_DIR}" >} > >stop_pre() { > [ "$RC_CMD" = restart ] && sleep 1 > return 0 >} > >reload() { > checkconfig || return 1 > ebegin "Reloading configuration and re-opening log files" > start-stop-daemon --signal HUP --pidfile "${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 544766
:
399956
|
399958
| 399960 |
524078
|
524080