File: x2gothinclient-chroot.init

package info (click to toggle)
x2gothinclient 1.5.0.1-13
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 856 kB
  • sloc: sh: 1,285; perl: 433; cpp: 76; makefile: 26
file content (44 lines) | stat: -rw-r--r-- 1,131 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
### BEGIN INIT INFO
# Provides:          x2gothinclient-chroot
# Required-Start:    $local_fs
# Required-Stop:
# Default-Start:     S
# Default-Stop:
# X-Start-Before:    nfs-common alsa-utils
# Short-Description: 
# Description:       Prepare X2Go TCE tmpfs directories for usage
### END INIT INFO

set -e

. /lib/lsb/init-functions

# pre-init X2Go Thin Client through init script...
if [ -d /usr/share/doc/x2gothinclient-displaymanager ]; then
	test -x /etc/x2go/x2gothinclient_init && . /etc/x2go/x2gothinclient_init
fi

case "$1" in
  start|"")
        # prep tmpfs subfolders for nfs-common
        mkdir -p /var/lib/nfs/rpc_pipefs
        mkdir -p /var/lib/nfs/sm
        mkdir -p /var/lib/nfs/sm.bak
        chown statd:nogroup /var/lib/nfs/rpc_pipefs
        chown statd:nogroup /var/lib/nfs/sm
        chown statd:nogroup /var/lib/nfs/sm.bak
        exit 0
        ;;
  restart|reload|force-reload|status)
        echo "Error: argument '$1' not supported" >&2
        exit 3
        ;;
  stop)
        # No-op
        ;;
  *)
        echo "Usage: x2gothinclient-chroot start" >&2
        exit 3
        ;;
esac