#!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ deamon="rklogd" rsbac_info="/proc/rsbac-info" start() { if [ -d "${rsbac_info}" ]; then ebegin "Starting rklogd" if [ -f $(which run-jail) ]; then $(which run-jail) $deamon start-stop-daemon --start --exec $(which ${deamon}) else start-stop-daemon --start --exec $(which ${deamon}) fi eend $? else ebegin "No rsbac-info directory avaible, not starting rklogd." fi } stop() { ebegin "Stopping rklogd" start-stop-daemon --stop --exec $(which ${deamon}) eend $? }