#!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ daemon="rklogd" rsbac_info="/proc/rsbac-info" start() { ebegin "Starting rklogd" local ret if [ -d "${rsbac_info}" ]; then if type run-jail >/dev/null 2>&1; then $(which run-jail) $daemon start-stop-daemon --start --exec $(which ${daemon}) else start-stop-daemon --start --exec $(which ${daemon}) fi ret=$? else ewarn "No rsbac-info directory avaible." ret=1 fi eend $ret } stop() { ebegin "Stopping rklogd" start-stop-daemon --stop --exec $(which ${daemon}) eend $? }