blob: f366934f0bfef15d67973b28f6950779e09db225 (
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
32
33
34
|
#!/bin/sh
#
# $NetBSD: ja_freewnn,v 1.3 2002/08/25 19:22:57 jlam Exp $
#
# PROVIDE: freewnn
# REQUIRE: DAEMON
. /etc/rc.subr
name="freewnn"
command_start="@PREFIX@/sbin/jserver"
command_stop="@PREFIX@/sbin/wnnkill"
pidfile=""
cmd=${1:-start}
case ${cmd} in
start)
if [ -x ${command_start} ]; then
echo "Starting ${name}."
${command_start} >/dev/null 2>&1
fi
;;
stop)
if [ -x ${command_stop} ]; then
echo "Stopping ${name}."
${command_stop} >/dev/null 2>&1
fi
;;
*)
:
;;
esac
exit 0
|