diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-08-05 22:10:15 -0300 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-08-08 07:36:49 +0000 |
commit | 61c0b8e50e720acc163e9043fbfac7655a18a083 (patch) | |
tree | 1f29cc167f50826f8ef1bdeb672cbafb2a61fc90 /main/mosquitto | |
parent | 2f2f995d9d52484720dbe8b4b1649c132ec1feee (diff) | |
download | aports-61c0b8e50e720acc163e9043fbfac7655a18a083.tar.bz2 aports-61c0b8e50e720acc163e9043fbfac7655a18a083.tar.xz |
main/mosquitto: use supervise-daemon for running mosquitto
Diffstat (limited to 'main/mosquitto')
-rw-r--r-- | main/mosquitto/APKBUILD | 6 | ||||
-rw-r--r-- | main/mosquitto/mosquitto.initd | 13 |
2 files changed, 11 insertions, 8 deletions
diff --git a/main/mosquitto/APKBUILD b/main/mosquitto/APKBUILD index 80c78abd09..7b2c994462 100644 --- a/main/mosquitto/APKBUILD +++ b/main/mosquitto/APKBUILD @@ -2,8 +2,8 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mosquitto pkgver=1.6.4 -pkgrel=0 -pkgdesc="An Open Source MQTT v3.1 Broker" +pkgrel=1 +pkgdesc="An Open Source MQTT v3.1 Message Broker" url="https://mosquitto.org/" arch="all" license="EPL-1.0" @@ -92,4 +92,4 @@ clients() { sha512sums="9faf035660965769f687eb85f9672f891d6ecf1069f665c039b3c25f0e1cc64653909b16d94101d31f81d016a2b3ff85585d66dad1f48afb8003cffbf67c52b6 mosquitto-1.6.4.tar.gz fb000f9fa1ef94cbf3811a23b5692c0c8f9e2df945959cef6005462715e99d6f75cf6b31bd496271ffc17634024aed986771a73962fef865c0d386f6c194fb33 config.patch 21df2006a5eb9e1248cf261e555ded8e80e79f2a2d2a55b1f8a153af7c0feb867f3b3bd71efbe4d8569e3031c65f3e144794724f012e7539244a9bd97b6b6bb3 disable-ci-tests.patch -16f96d8f7f3a8b06e2b2e04d42d7e0d89a931b52277fc017e4802f7a3bc85aff4dd290b1a0c40382ea8f5568d0ceb7319c031d9be916f346d805231a002b0433 mosquitto.initd" +d5406c258351133d85fc90056d78286a0ed1defde90e68d84fa9a1d65244d2baef76fd30fd04855e4bf6fc87532ef8ff274a6b70564f09f69fc6d14b5106fef0 mosquitto.initd" diff --git a/main/mosquitto/mosquitto.initd b/main/mosquitto/mosquitto.initd index f6c4dc95ec..2e7830030d 100644 --- a/main/mosquitto/mosquitto.initd +++ b/main/mosquitto/mosquitto.initd @@ -1,14 +1,17 @@ #!/sbin/openrc-run +supervisor=supervise-daemon + +name="Mosquitto message broker" +description="MQTT v3.1.1 Message Broker" + command="/usr/sbin/mosquitto" -command_args="-d $mosquitto_args" -#start_stop_daemon_args="--background --stdout /dev/null --stderr /dev/null" +command_args="$mosquitto_args" -config=/etc/mosquitto/${SVCNAME#mosquitto.}.conf +config=/etc/mosquitto/${RC_SVCNAME#mosquitto.}.conf start_pre() { - if [ -e $config ]; then - pidfile=$(awk '$1 == "pid_file" {print $2}' $config) + if [ -f $config ]; then command_args="-c $config $command_args" fi } |