annotate contrib/init.d/d4e-river @ 7945:2235bc9b66c0

merged.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 18 Jun 2014 14:29:05 +0200
parents 1709c429818a
children 0000ed802cad
rev   line source
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
1 #!/bin/bash
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
2 #
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
3 ### BEGIN INIT INFO
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
4 # Provides: d4e-server
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
5 # Required-Start: $network $syslog $remote_fs
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
6 # Should-Start: $named $syslog $time
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
7 # Required-Stop: $network $syslog
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
8 # Should-Stop: $named $syslog $time
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
9 # Default-Start: 3 5
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
10 # Default-Stop: 0 1 2 6
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
11 # Short-Description: Dive4Elements server
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
12 # Description: Start Dive4Elements server
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
13 ### END INIT INFO
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
14
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
15 RUNAS=flys
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
16 START_SCRIPT="/opt/flys/d4e-start"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
17 NAME="$(basename $0)"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
18 SHUTDOWN_WAIT="30"
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
19
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
20 export FLYSDIR="/opt/flys/current/server"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
21
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
22 unset ISBOOT
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
23 if [ "${NAME:0:1}" = "S" -o "${NAME:0:1}" = "K" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
24 NAME="${NAME:3}"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
25 ISBOOT="1"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
26 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
27
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
28 # remove SUSE's rc name
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
29 if [ "${NAME:0:2}" = "rc" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
30 NAME="${NAME:2}"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
31 fi
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
32
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
33
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
34 export LOGFILE=/var/log/d4e-river.log
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
35 export ARGS="-Xmx256m \
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
36 -server \
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
37 -Djava.awt.headless=true \
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
38 -Dflys.datacage.recommendations.development=false \
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
39 -Djava.io.tmpdir=$FLYSDIR/cache \
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
40 -Dflys.backend.enablejmx=true \
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
41 -Dflys.uesk.keep.artifactsdir=false \
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
42 -Dwsplgen.bin.path=$FLYSDIR/bin/wsplgen.exe \
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
43 -Dwsplgen.log.output=false \
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
44 -Dlog4j.configuration=file://$FLYSDIR/conf/log4j.properties \
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
45 -Dartifact.database.dir=$FLYSDIR/conf"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
46 export MAINCLASS=org.dive4elements.artifactdatabase.App
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
47
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
48 # For SELinux we need to use 'runuser' not 'su'
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
49 if [ -x "/sbin/runuser" ]; then
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
50 SU="/sbin/runuser"
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
51 else
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
52 SU="/bin/su -m"
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
53 fi
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
54
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
55 # pulled from RHEL4 /etc/rc.d/init.d/functions
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
56 function checkpid() {
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
57 local i
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
58 for i in $* ; do
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
59 if [ -d "/proc/${i}" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
60 return 0
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
61 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
62 done
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
63 return 1
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
64 }
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
65
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
66 . /etc/rc.status
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
67 rc_reset
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
68
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
69 function start() {
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
70 echo -n "Starting D4E-river server... "
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
71 if [ -f "/var/lock/subsys/${NAME}" ] ; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
72 if [ -f "/var/run/${NAME}.pid" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
73 read kpid < /var/run/${NAME}.pid
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
74 if checkpid $kpid 2>&1; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
75 echo "$NAME process already running with pid $kpid"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
76 rc_failed 0
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
77 exit
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
78 else
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
79 echo "lock file found but no process running for pid $kpid, continuing"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
80 rc_failed 7
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
81 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
82 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
83 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
84
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
85 export D4E_PID="/var/run/${NAME}.pid"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
86 touch $D4E_PID
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
87 chown $RUNAS $D4E_PID
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
88 touch $LOGFILE
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
89 chown $RUNAS $LOGFILE
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
90
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
91 for l in `find "$FLYSDIR/bin/lib" -name \*.jar -print`; do
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
92 CLASSPATH=$CLASSPATH:$l
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
93 done
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
94
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
95 export CLASSPATH
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
96
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
97 $SU $RUNAS -c "$START_SCRIPT"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
98 #>> $LOGFILE 2>&1
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
99 RETVAL="$?"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
100 if [ "$RETVAL" -eq 0 ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
101 rc_failed 0
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
102 touch /var/lock/subsys/${NAME}
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
103 else
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
104 rc_failed 7
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
105 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
106 rc_status -v
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
107 }
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
108
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
109 function stop() {
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
110 echo -n "Shutting down D4E-River"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
111 if [ -f "/var/lock/subsys/${NAME}" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
112 count="0"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
113 if [ -f "/var/run/${NAME}.pid" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
114 read kpid < /var/run/${NAME}.pid
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
115 kill $kpid
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
116 until [ "$(ps --pid $kpid | grep -c $kpid)" -eq "0" ] || \
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
117 [ "$count" -gt "$SHUTDOWN_WAIT" ]; do
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
118 if [ "$SHUTDOWN_VERBOSE" = "true" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
119 echo -n -e "\nwaiting for processes $kpid to exit"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
120 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
121 sleep 1
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
122 let count="${count}+1"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
123 done
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
124 if [ "$count" -gt "$SHUTDOWN_WAIT" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
125 if [ "$SHUTDOWN_VERBOSE" = "true" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
126 echo -n -e "\nkilling processes which didn't stop"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
127 echo -n -e "after "
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
128 echo -n "$SHUTDOWN_WAIT seconds"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
129 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
130 kill -9 $kpid
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
131 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
132 rc_failed 0
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
133 if [ "$count" -gt "0" ]; then
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
134 echo -n -e "\n"
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
135 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
136 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
137 rm -f /var/lock/subsys/${NAME} /var/run/${NAME}.pid
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
138 fi
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
139 rc_status -v
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
140 }
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
141
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
142
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
143
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
144
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
145 case "$1" in
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
146 start)
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
147 start
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
148 ;;
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
149 stop)
7738
1709c429818a (issue1692) Überarbeitetes Init script
Andre Heinecke <aheinecke@intevation.de>
parents: 5872
diff changeset
150 stop
5118
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
151 ;;
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
152 restart)
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
153 $0 stop && $0 start
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
154 ;;
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
155 *)
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
156 echo "Usage: $0 [start|stop|restart]"
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
157 esac
dc0cc18e7944 Added SLES start script
Sascha L. Teichmann <teichmann@intevation.de>
parents:
diff changeset
158

http://dive4elements.wald.intevation.org