blob: 58b2ee5916f73c092ffeb7b7688d81cf1cc1d1b3 (
plain) (
blame)
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
35
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: abyssws
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# abyssws_enable (bool): Set to NO by default.
# Set it to YES to enable abyssws.
#
. /etc/rc.subr
name=abyssws
rcvar=abyssws_enable
command="%%PREFIX%%/lib/abyssws/abyssws"
command_args="-d >/dev/null"
pidfile="%%PREFIX%%/lib/abyssws/log/abyssws.pid"
stop_postcmd="abyssws_poststop"
abyssws_poststop()
{
/bin/rm -f "${pidfile}"
}
load_rc_config $name
: ${abyssws_enable="NO"}
run_rc_command "$1"
|