View | Details | Raw Unified | Return to bug 254254
Collapse All | Expand All

(-)net/mosquitto/Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	mosquitto
4
PORTNAME=	mosquitto
5
PORTVERSION=	2.0.8
5
PORTVERSION=	2.0.8
6
PORTREVISION=	1
6
CATEGORIES=	net
7
CATEGORIES=	net
7
MASTER_SITES=	http://mosquitto.org/files/source/
8
MASTER_SITES=	http://mosquitto.org/files/source/
8
9
(-)net/mosquitto/files/mosquitto.in (-1 / +8 lines)
Lines 27-41 Link Here
27
27
28
command=%%PREFIX%%/sbin/mosquitto
28
command=%%PREFIX%%/sbin/mosquitto
29
command_args="-c ${mosquitto_config} -d"
29
command_args="-c ${mosquitto_config} -d"
30
pidfile=$(grep pidfile ${mosquitto_config} | awk '{print($2)}')
30
pidfile=$(grep pid_file ${mosquitto_config} | awk '{print($2)}')
31
required_files=${mosquitto_config}
31
required_files=${mosquitto_config}
32
mosquitto_user=daemon
32
33
33
extra_commands="reload"
34
extra_commands="reload"
34
stop_postcmd=stop_postcmd
35
stop_postcmd=stop_postcmd
36
start_precmd="mosquitto_precmd"
37
35
stop_postcmd()
38
stop_postcmd()
36
{
39
{
37
  rm -f $pidfile
40
  rm -f $pidfile
38
}
41
}
39
42
43
mosquitto_precmd() {
44
	install -o ${mosquitto_user} -m 644 /dev/null ${pidfile}
45
}
46
40
load_rc_config $name
47
load_rc_config $name
41
run_rc_command "$1"
48
run_rc_command "$1"

Return to bug 254254