summaryrefslogtreecommitdiff
path: root/app-admin/sysklogd/files/sysklogd.rc10
blob: 749f87f08be63d8f4c6b06ac70d6344e6d0e58aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2 or later

extra_started_commands="reload"
pidfile="/run/${RC_SVCNAME}.pid"
command="/usr/sbin/syslogd"
command_background="true"
command_args="-F ${SYSLOGD}"

depend() {
	need clock hostname
	provide logger
}

reload() {
	ebegin "Reloading configuration"
	start-stop-daemon --signal HUP --pidfile ${pidfile}
	eend $?
}