27 lines
460 B
Plaintext
27 lines
460 B
Plaintext
|
#!/sbin/runscript
|
||
|
# Copyright 1999-2014 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
depend() {
|
||
|
need net
|
||
|
}
|
||
|
|
||
|
start() {
|
||
|
ebegin "Starting ${SVCNAME}"
|
||
|
start-stop-daemon \
|
||
|
--start \
|
||
|
--exec "/usr/sbin/hiawatha" \
|
||
|
--pidfile "/var/run/hiawatha.pid"
|
||
|
eend $?
|
||
|
}
|
||
|
|
||
|
stop() {
|
||
|
ebegin "Stopping ${SVCNAME}"
|
||
|
start-stop-daemon \
|
||
|
--stop \
|
||
|
--exec "/usr/sbin/hiawatha" \
|
||
|
--pidfile "/var/run/hiawatha.pid"
|
||
|
eend $?
|
||
|
}
|