Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159633
start_rabbitmq.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
678 B
Referenced Files
None
Subscribers
None
start_rabbitmq.sh
View Options
#!/usr/bin/env bash
set
-eou
pipefail
if
!
command
-v
rabbitmq-server
>
/dev/null
;
then
echo
"Please install rabbitmq-server or run 'nix develop'"
>
&
2
exit
1
fi
SCRIPT_DIR
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
-P
)
# shellcheck source=/dev/null
source
"
${
SCRIPT_DIR
}
/source_development_defaults.sh"
# RabbitMQ is mostly configured through environment variables
# located in scripts/source_development_defaults.sh
mkdir
-p
"
$RABBITMQ_LOG_BASE
"
echo
"View RabbitMQ logs: tail -f
$RABBITMQ_LOGS
"
>
&
2
echo
"Kill RabbitMQ server: pkill rabbitmq-server beam.smp"
>
&
2
# 'exec' allows for us to replace bash process with RabbitMQ
exec
rabbitmq-server
>
"
$RABBITMQ_LOG_BASE
/startup.log"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sun, Dec 7, 4:35 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5230578
Default Alt Text
start_rabbitmq.sh (678 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment