dev/modules/sysconfig/templates/rc.local.erb
author ymh <ymh.work@gmail.com>
Fri, 14 Mar 2014 13:16:10 +0100
changeset 611 fa66f4bb1563
parent 587 a1aa29e7809f
permissions -rw-r--r--
add some more custom config and put every thing in comment in the custom.yaml template

#!/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.

if [ ! -d /var/run/gunicorn ]; then
  mkdir /var/run/gunicorn/
  chown www-data:www-data /var/run/gunicorn/
fi

exit 0