-
Notifications
You must be signed in to change notification settings - Fork 4
/
fosm.init
executable file
·52 lines (43 loc) · 1.16 KB
/
fosm.init
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
45
46
47
48
49
50
51
52
#! /bin/sh
### BEGIN INIT INFO
# Provides: xapi xapid
# Required-Start: $local_fs $remote_fs
# Required-Stop:
# X-Start-Before:
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Provide xapid server
# Description: Provide xapid server
### END INIT INFO
N=/etc/init/fosm
export zappy="/srv/fosm"
export gtm_dist="$zappy/gtm"
export gtmx="$zappy/gtmx"
export gtmgbldir="$zappy/data/xapi.gld"
export gtmroutines="$zappy/scripts/o($zappy/scripts $zappy/serenji $gtmx) $gtm_dist/libgtmutil.so $gtm_dist"
export gtm="$gtmx/gtmrun ^direct gtm"
export gtmrun="$gtmx/gtmrun"
export mupip="$gtm_dist/mupip"
export lke="$gtm_dist/lke"
export gde="$gtmx/gtmrun ^GDE"
export dse="$gtm_dist/dse"
export gtm_repl_instance="fosm02.repl"
export gtm_repl_instname="fosm02"
export gtm_access_ci="$zappy/scripts/gtm_access.ci"
export gtm_data_dir="$zappy/data"
PATH=$PATH:$zappy/scripts:$gtm_dist
export GTMCI=$zappy/scripts/xapi.ci
set -e
case "$1" in
start)
cd $zappy/data
($zappy/scripts/xapid </dev/null >/dev/null 2>>xapid.err &)
;;
stop|reload|restart|force-reload)
;;
*)
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0