Last active
December 22, 2016 21:27
-
-
Save ahnooie/4e56ee8964e3198ec5cdcb73328e716a to your computer and use it in GitHub Desktop.
Mule 3.x configuration as a Ubuntu service
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
$ sudo vim /etc/init.d/mule |
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
$ sudo chown root:root /etc/init.d/mule | |
$ sudo chmod 755 /etc/init.d/mule | |
$ sudo /etc/init.d/mule start | |
MULE_HOME is set to /opt/mule-standalone-3.8.0 | |
Starting Mule... |
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
#!/bin/bash | |
# Set JDK related environment | |
# bachman: I assume here, that you already have JAVA_HOME variable available. In that case, you can also skip reassignment. | |
JAVA_HOME=$JAVA_HOME | |
PATH=$PATH:$JAVA_HOME/bin | |
# Set Mule related environment | |
MULE_HOME=/opt/mule-standalone-3.8.0 | |
PATH=$PATH:$MULE_HOME/bin | |
# Export environment variables | |
export JAVA_HOME MULE_HOME MULE_LIB PATH | |
# Invoke Mule | |
su -l mule $MULE_HOME/bin/mule $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment