#!/sbin/runscript # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ : ${ZSV_LOGFILE:=/var/log/msg/current} : ${SVDIR:=/run/service} #depend() { #} start() { ebegin starting runit services zsh -l -c "tailwhile '$ZSV_LOGFILE' zsvwait" eend $? } stop() { ebegin "stopping runit services" touch $SVDIR/down && zsh -l -c "tailwhile '$ZSV_LOGFILE' zsvstop" eend $? }