kumquat-buildroot/package/rabbitmq-server/S50rabbitmq-server
Frank Vanbever 27df8b7b0d package/rabbitmq-server: bump version to 3.8.2
RabbitMQ now depends on Elixir for the build system.
The log directory is required for the server to start with the default
configuration. This behaviour was changed in v3.7 with the move to erlang-lager
as the logging library.

License changes:
- LICENSE: Added clarification about the licensing of a number of included
  dependencies and a URL changed to HTTPS. License remains MPL-1.1
- LICENSE-BSD-base64js: URL changed to https (license text is actually MIT)
- LICENSE-MIT-Flot: year update
- LICENSE-MIT-JQuery164: URL changed to https
- LICENSE-MPL-RabbitMQ: URL changed to https, year update
- LICENSE-MPL2: URL changed to https

Removed licenses:
- LICENSE-APL2-Rebar: Removed dependency
- LICENSE-BSD-gl-Matrix: Removed dependency
- LICENSE-ERL-OTP: Removed license
- LICENSE-MIT-Mochiweb: Removed dependency
- LICENSE-MIT-SockJS: Removed dependency

New licenses:
- LICENSE-APACHE2-excanvas: new bundled dependency (Apache 2)
- LICENSE-BSD-recon: new bundled dependency (BSD 3-clause)
- LICENSE-erlcloud: new bundled dependency (BSD 2-clause)
- LICENSE-httpc_aws: new bundled dependency (BSD 3-clause)
- LICENSE-ISC-cowboy: new bundled dependency (ISC)
- LICENSE-MIT-EJS: new bundled dependency (MIT)
- LICENSE-MIT-Erlware-commons: license was present in 3.6.6 but not included in
  the list
- LICENSE-MIT-jQuery: new bundled dependency (MIT)
- LICENSE-MIT-Sammy: new bundled dependency (MIT)
- LICENSE-rabbitmq_aws: new bundled dependency (BSD 3-clause)

Signed-off-by: Frank Vanbever <frank.vanbever@essensium.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-04-12 21:28:43 +02:00

31 lines
751 B
Bash

#!/bin/sh
#
# Start/stop rabbitmq-server
#
INSTALLUSER=rabbitmq
RUNDIR=/var/run/rabbitmq
LOGDIR=/var/log/rabbitmq
case "$1" in
start)
install -d -o "$INSTALLUSER" -g "$INSTALLUSER" "$RUNDIR" || exit 1
install -d -o "$INSTALLUSER" -g "$INSTALLUSER" "$LOGDIR" || exit 1
printf "Starting rabbitmq-server: "
su -c "/usr/sbin/rabbitmq-server -detached" - "$INSTALLUSER" 2>/dev/null
[ $? = 0 ] && echo "OK" || echo "FAIL"
;;
stop)
printf "Stopping rabbitmq-server: "
su -c "/usr/sbin/rabbitmqctl stop" - "$INSTALLUSER"
[ $? = 0 ] && echo "OK" || echo "FAIL"
;;
restart|reload)
"$0" stop || true
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac