diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-01 08:19:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-01 08:19:44 +0000 |
commit | cab07abe1ce745792bd5b2edead43955e5d983ff (patch) | |
tree | 29f7476596c4d9842dc08dc4358d7cc812f213ed /testing/rsyslog/rsyslog.initd | |
parent | aa51eef2ac959f498ffa8abdf30f1b0e9fee9541 (diff) | |
download | aports-cab07abe1ce745792bd5b2edead43955e5d983ff.tar.bz2 aports-cab07abe1ce745792bd5b2edead43955e5d983ff.tar.xz |
testing/rsyslog: buildfixes for json-0.11
use json-c as pkg-config package and append JSON_C_CFLAGS wherever
needed
Diffstat (limited to 'testing/rsyslog/rsyslog.initd')
-rw-r--r-- | testing/rsyslog/rsyslog.initd | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/rsyslog/rsyslog.initd b/testing/rsyslog/rsyslog.initd new file mode 100644 index 000000000..5671f19db --- /dev/null +++ b/testing/rsyslog/rsyslog.initd @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/rsyslog/files/5-stable/rsyslog.initd,v 1.1 2010/10/21 07:38:29 dev-zero Exp $ + +extra_started_commands="reload" + +depend() { + need clock hostname localmount + provide logger +} + +start() { + ebegin "Starting rsyslogd" + start-stop-daemon \ + --start --quiet --exec /usr/sbin/rsyslogd \ + -- ${RSYSLOG_OPTS} -i "${PIDFILE}" -f "${CONFIGFILE}" + eend $? +} + +stop() { + ebegin "Stopping rsyslogd" + start-stop-daemon \ + --stop --quiet \ + --pidfile "${PIDFILE}" + eend $? +} + +reload() { + if [ ! -f "${PIDFILE}" ]; then + eerror "rsyslogd not running" + return 1 + fi + + ebegin "Re-opening rsyslogd log files" + start-stop-daemon --stop --signal HUP \ + --pidfile "${PIDFILE}" + eend $? +} |