Skip to content

Instantly share code, notes, and snippets.

@lajunta
Created October 23, 2013 14:15
Show Gist options
  • Save lajunta/7119608 to your computer and use it in GitHub Desktop.
Save lajunta/7119608 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/data/run/firewall >/dev/null 2>&1 &
#/data/run/startmongod &
#/data/run/startdljy >/dev/null 2>&1 &
#/data/run/startkpy >/dev/null 2>&1 &
#/data/run/startdc >/dev/null 2>&1 &
#/data/run/startiku >/dev/null 2>&1 &
#rm /data/mongodb/master/mongod.lock > /dev/null
source /usr/local/rvm/scripts/rvm
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment