You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/xinetd/files/xinetd.rc6

33 lines
721 B

#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the BSD License
extra_started_commands="reload dump check"
depend() {
use net
}
start() {
ebegin "Starting xinetd"
start-stop-daemon --start --exec /usr/sbin/xinetd -- \
-pidfile /var/run/xinetd.pid ${XINETD_OPTS}
eend $?
}
stop() {
ebegin "Stopping xinetd"
start-stop-daemon --stop --quiet --pidfile /var/run/xinetd.pid
eend $?
}
do_sig() {
local sig=$1 ; shift
ebegin "$*"
start-stop-daemon --signal ${sig} --pidfile /var/run/xinetd.pid
eend $?
}
reload() { do_sig HUP "Reloading configuration" ; }
dump() { do_sig USR1 "Dumping configuration" ; }
check() { do_sig IOT "Performing Consistency Check" ; }