rsyslog: switch to systemd, drop openrc support.

This commit is contained in:
Juan RP 2011-10-11 04:42:34 +02:00
parent 1f9d54948f
commit d07ba8eaba
3 changed files with 3 additions and 41 deletions

View File

@ -1,13 +0,0 @@
# Config file for /etc/init.d/rsyslog
CONFIGFILE="/etc/rsyslog.conf"
PIDFILE="/var/run/rsyslogd.pid"
# Options to rsyslogd
# See rsyslogd(8) for more details
# Notes:
# * Do not specify another PIDFILE but use the variable above to change the location
# * Do not specify another CONFIGFILE but use the variable above to change the location
# * "-c4" tells rsyslog to _not_ run in sysklogd compatibility mode
RSYSLOGD_OPTS="-c4"

View File

@ -1,23 +0,0 @@
#!/sbin/runscript
pidfile=${PIDFILE}
command=/usr/sbin/rsyslogd
command_args="${RSYSLOGD_OPTS} -i ${pidfile} -f ${CONFIGFILE}"
opts="reload"
depend()
{
provide logger
}
reload()
{
if [ ! -f "${PIDFILE}" ]; then
eerror "rsyslogd not running"
return 1
fi
ebegin "Reloading configuration and re-opening log files"
start-stop-daemon --stop --oknodo --signal HUP \
--pidfile "${PIDFILE}"
eend $?
}

View File

@ -1,7 +1,7 @@
# Template file for 'rsyslog'
pkgname=rsyslog
version=5.8.5
revision=1
revision=2
homepage="http://www.rsyslog.com"
distfiles="${homepage}/files/download/rsyslog/$pkgname-$version.tar.gz"
build_style=gnu_configure
@ -19,8 +19,8 @@ long_desc="
subpackages="$pkgname-docs $pkgname-gssapi $pkgname-gnutls"
subpackages="${subpackages} $pkgname-mysql $pkgname-postgresql"
conf_files="/etc/rsyslog.conf /etc/conf.d/rsyslogd"
openrc_services="rsyslogd default true"
conf_files="/etc/rsyslog.conf"
systemd_services="rsyslog.service"
provides="syslog-daemon-0"
replaces="syslog-daemon>=0"
@ -35,8 +35,6 @@ Add_dependency build mit-krb5-devel
post_install()
{
vinstall ${FILESDIR}/rsyslogd.rc 755 etc/init.d rsyslogd
vinstall ${FILESDIR}/rsyslogd.confd 644 etc/conf.d rsyslogd
vinstall ${FILESDIR}/rsyslog.conf 644 etc
vinstall ${FILESDIR}/rsyslog.logrotate 644 etc/logrotate.d rsyslog
# Install HTML documentation.