summaryrefslogtreecommitdiff
path: root/sysutils/conman/files/conmand.in
blob: 522766fb4b744762db0da1370b3e2a600a3d867e (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
#!/bin/sh

# $FreeBSD$
#
# PROVIDE: conmand
# REQUIRE: NETWORKING
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable conman:
# conman_enable="YES"
# conman_args="<set as needed>"

. /etc/rc.subr

name=conmand
rcvar=conmand_enable

load_rc_config $name

pidfile=/var/run/conmand.pid
procname="%%PREFIX%%/sbin/conmand"

: ${conmand_enable:="NO"}
: ${conmand_args:="-P ${pidfile}"}

command="${procname}"
command_args="${conmand_args}"

run_rc_command "$1"