/neatx/extras/rpm/neatx.initscript
http://neatx.googlecode.com/ · Bash · 26 lines · 24 code · 2 blank · 0 comment · 0 complexity · 5f8791b74bbfff1f017135aa35395d3f MD5 · raw file
- #!/bin/bash
- #
- # Copied from freenx-server fedora package
- #
- # chkconfig: 2345 91 35
- # description: Creates /tmp/.X11-unix/ if required
- start() {
- install -d -o root -g root -m 1777 "/tmp/.X11-unix"
- restorecon /tmp/.X11-unix 2>/dev/null || :
- }
- case "$1" in
- start)
- start
- ;;
- stop)
- :
- ;;
- restart)
- :
- ;;
- *)
- echo $"Usage: $prog {start}"
- exit 1
- esac