Created
February 7, 2012 15:08
-
-
Save MasonM/1760130 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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