#!/sbin/runscript # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-libs/freeipmi/files/bmc-watchdog.initd.4,v 1.1 2012/07/31 01:41:36 flameeyes Exp $ extra_commands="condrestart" description_condrestart="Restart the service only if started already" command="/usr/sbin/${SVCNAME}" command_args="${OPTIONS}" pidfile=/var/run/$SVCNAME.pid depend() { need logger } condrestart() { service_started && restart }