PageRenderTime 54ms CodeModel.GetById 49ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/neatx/extras/rpm/neatx.initscript

http://neatx.googlecode.com/
Bash | 26 lines | 24 code | 2 blank | 0 comment | 0 complexity | 5f8791b74bbfff1f017135aa35395d3f MD5 | raw file
 1#!/bin/bash
 2#
 3# Copied from freenx-server fedora package
 4#
 5# chkconfig: 2345 91 35
 6# description: Creates /tmp/.X11-unix/ if required
 7
 8start() {
 9  install -d -o root -g root -m 1777 "/tmp/.X11-unix"
10  restorecon /tmp/.X11-unix 2>/dev/null || :
11}
12
13case "$1" in
14  start)
15        start
16        ;;
17  stop)
18        :
19        ;;
20  restart)
21        :
22        ;;
23  *)
24        echo $"Usage: $prog {start}"
25        exit 1
26esac