blob: 2d0d96c9a1e38e53152555b3963eca7ec8d2220a (
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
|
#!/bin/sh
# PROVIDE: kea
# REQUIRE: NETWORK netif routing %%REQ_MYSQL%% %%REQ_PGSQL%%
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# kea_enable="YES"
#
. /etc/rc.subr
name=kea
desc="Kea DHCP Server"
rcvar=kea_enable
load_rc_config $name
kea_enable=${kea_enable:-"NO"}
command="%%PREFIX%%/sbin/keactrl"
required_files="%%PREFIX%%/etc/${name}/keactrl.conf"
extra_commands=reload
start_precmd=command_args=start
stop_cmd="$command stop"
status_cmd="$command status"
reload_cmd="$command reload"
run_rc_command "$1"
|