Created
February 6, 2017 15:14
-
-
Save bthompson-nd/f4a168451d32daf8e324303976824eb8 to your computer and use it in GitHub Desktop.
A systemd ActiveMQ service file for CentOS 7 and Red Hat 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=ActiveMQ Message Broker | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
PIDFile="/opt/activemq/data/activemq.pid" | |
ExecStart="/opt/activemq/bin/start" | |
ExecStop="/opt/activemq/bin/stop" | |
ExecReload="/opt/activemq/bin/restart" | |
User=activemq | |
Group=activemq | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This requires the manual creation of shell scripts "start" "stop" and "restart" in the bin directory, and the creation of an activemq user to own the /opt/activemq directory.