Skip to content

Instantly share code, notes, and snippets.

View rstanley75's full-sized avatar

Ryan Stanley rstanley75

View GitHub Profile
@rstanley75
rstanley75 / mosquitto
Last active August 12, 2019 18:24
mosquitto init file for openrc on Alpine Linux
#!/sbin/openrc-run
: ${MOSQUITTO_USER:=mosquitto}
: ${MOSQUITTO_GROUP:=mqtt}
: ${MOSQUITTO_CONF:=/etc/mosquitto/mosquitto.conf}
: ${MOSQUITTO_PIDDIR:=/run/mosquitto}
: ${MOSQUITTO_PIDFILE:=${MOSQUITTO_PIDDIR}/${SVCNAME}.pid}
: ${MOSQUITTO_LOGDIR:=/var/log/mosquitto}
: ${MOSQUITTO_PERSISTDIR:=/var/lib/mosquitto}
: ${MOSQUITTO_BINARY:=/usr/sbin/mosquitto}