blob: 929b08ea0f802a06c58bd2cddc5153897d25b206 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/howl/files/nifd.init.d,v 1.2 2004/07/14 23:59:44 agriffis Exp $
start() {
ebegin "Starting nifd"
start-stop-daemon --start --quiet --pidfile /var/run/nifd.pid \
--startas /usr/bin/nifd ${NIFD_OPTS}
eend $? "Failed to start nifd"
}
stop() {
ebegin "Stopping nifd"
start-stop-daemon --stop --quiet --pidfile /var/run/nifd.pid
eend $? "Failed to stop nifd"
# clean stale pidfile
[ -f /var/run/nifd.pid ] && rm -f /var/run/nifd.pid
}
|