Skip to content

Instantly share code, notes, and snippets.

@rasheedamir
Last active August 29, 2015 14:17
Show Gist options
  • Save rasheedamir/e5018b88a526d626a685 to your computer and use it in GitHub Desktop.
Save rasheedamir/e5018b88a526d626a685 to your computer and use it in GitHub Desktop.
$ 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 /home/bachman/tools/mule-standalone-3.2.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=${HOME}/tools/mule-standalone-3.2.0
PATH=$PATH:$MULE_HOME/bin
# Export environment variables
export JAVA_HOME MULE_HOME MULE_LIB PATH
# Invoke Mule
$MULE_HOME/bin/mule $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment