summaryrefslogtreecommitdiff
path: root/net/mosquitto/files/mosquitto.sh
blob: 62f145ef74b39b68a3ecb04721b3bfad62d3bad9 (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.3 2021/01/28 19:49:29 triaxx Exp $
#
# PROVIDE: mosquitto
# REQUIRE: DAEMON

. /etc/rc.subr

name="mosquitto"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="@VARBASE@/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"