Skip to content

Instantly share code, notes, and snippets.

@MasonM
Created February 7, 2012 15:08
Show Gist options
  • Save MasonM/1760130 to your computer and use it in GitHub Desktop.
Save MasonM/1760130 to your computer and use it in GitHub Desktop.
#! /bin/sh
### BEGIN INIT INFO
# Provides: mysql-ramdisk
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop: 6
# Short-Description: Init mysql ramdisk
# Description:
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
. /lib/init/vars.sh
. /lib/lsb/init-functions
umask 022
case "$1" in
start)
cp -R /var/lib/mysql-ramdisk /dev/shm/mysql
chown -R mysql.mysql /dev/shm/mysql
;;
restart|reload|force-reload|stop)
# No-op
;;
*)
echo "Usage: $0 start" >&2
exit 3
;;
esac
:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment