Created
November 18, 2018 18:52
-
-
Save evaristorivi/f322fa2571527b123c1f0a32a2e059b0 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 | |
case "$1" in | |
start) mkdir /var/lock/subsys 2>/dev/null | |
touch /var/lock/subsys/listener | |
rm /dev/shm 2>/dev/null | |
mkdir /dev/shm 2>/dev/null | |
mount -t tmpfs shmfs -o size=2048m /dev/shm ;; | |
*) echo error | |
exit 1 ;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment