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-libs/freeipmi/files/bmc-watchdog.initd.4

21 lines
525 B

#!/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.2 2012/12/28 12:51:04 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 localmount
use logger
}
condrestart() {
service_started && restart
}