1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/community/inetutils-syslogd/inetutils-syslogd.initd
Stuart Cardall 5c9f3ca3e3 testing/[various]: move to community
albatross-themes
apk-post-messages
autossh
bitcoin
btrbk
entr
ffmpegthumbnailer
firejail
firetools
fwsnort
gnome-colors
imapsync
inetutils-syslogd
inotify-tools-inc
isync
junit
ktsuss
letsencrypt-nosudo
libmbim
libndp
libqmi
libteam
mini-sendmail
modemmanager
namecoin
networkmanager
nginx-naxsi
numix-themes
nxapi
opencl-headers
opencl-icd-loader
opus-tools
perl-authen-ntlm
perl-bit-vector
perl-data-uniqid
perl-file-copy-recursive
perl-getopt-argvfile
perl-io-tee
perl-iptables-chainmgr
perl-iptables-parse
perl-module-scandeps
perl-par-dist
perl-par-packer
perl-par
perl-uri-escape
psad
py-crcmod
py-graphviz
py-lz4
py-opencl
py-opengl-accelerate
runit
secpwgen
secure-delete
socklog
spacefm
tinyssh
udevil
virt-viewer
virtualbricks
whois
wrk
xpra
zram-init
2016-08-21 22:24:04 +02:00

36 lines
838 B
Text

#!/sbin/openrc-run
# This file is part of inetutils-syslogd
# Created for Alpine Linux by Stuart Cardall <developer@it-offshore.co.uk>
# Distributed under the terms of the GNU General Public License v2
name=syslogd
config_file="/etc/syslog.conf"
pid_file=/var/run/syslog.pid
command=/usr/sbin/$name
command_args=${SYSLOGD_OPTS}
extra_started_commands="reload"
depend() {
need clock hostname localmount
provide logger
}
check_config() {
[ -f "$config_file" ] || error "$config_file is missing"
}
start_pre() {
check_config || return 1
}
reload() {
if [ ! -f "${pid_file}" ]; then
eerror "inetutils-$name is not running"
return 1
fi
ebegin "Re-opening intetutils-$name log files"
pkill -HUP -f "$command $command_args"
eend $?
}