blob: 45bc01d431899600c26fb53e1c4acef153123b31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/sbin/runscript
# Copyright 1999-2011 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.2,v 1.1 2011/09/07 06:20:45 flameeyes Exp $
extra_commands="condrestart"
PIDFILE=/var/run/$SVCNAME.pid
start() {
rm -f $PIDFILE
ebegin "Starting $SVCNAME"
start-stop-daemon \
--start --exec /usr/sbin/$SVCNAME \
--pidfile $PIDFILE -- ${OPTIONS}
eend $?
}
stop() {
ebegin "Stopping $SVCNAME"
start-stop-daemon \
--stop \
--pidfile $PIDFILE
eend $?
rm -f $PIDFILE
}
condrestart() {
service_started && restart
}
|