Skip to content

Instantly share code, notes, and snippets.

@evaristorivi
Created November 18, 2018 18:52
Show Gist options
  • Save evaristorivi/f322fa2571527b123c1f0a32a2e059b0 to your computer and use it in GitHub Desktop.
Save evaristorivi/f322fa2571527b123c1f0a32a2e059b0 to your computer and use it in GitHub Desktop.
#!/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