Skip to content

Instantly share code, notes, and snippets.

@ahnooie
Last active December 22, 2016 21:27
Show Gist options
  • Save ahnooie/4e56ee8964e3198ec5cdcb73328e716a to your computer and use it in GitHub Desktop.
Save ahnooie/4e56ee8964e3198ec5cdcb73328e716a to your computer and use it in GitHub Desktop.
Mule 3.x configuration as a Ubuntu service
$ sudo vim /etc/init.d/mule
$ 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...
#!/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