summaryrefslogtreecommitdiff
path: root/net/mosquitto/files/mosquitto.sh
blob: 63282bd16056a1debc9799025f3d5c2d48df7192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: mosquitto.sh,v 1.2 2021/01/28 19:46:24 triaxx Exp $
#
# PROVIDE: mosquitto
# REQUIRE: DAEMON

. /etc/rc.subr

name="mosquitto"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
config="@PKG_SYSCONFDIR@/${name}.conf"

command_args="-d -c $config"

test_cmd="mosquitto_test"
extra_commands=""

load_rc_config $name
run_rc_command "$1"