-
Notifications
You must be signed in to change notification settings - Fork 20
/
besd.in
executable file
·38 lines (35 loc) · 940 Bytes
/
besd.in
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
#!/bin/bash
#
# besd Startup script for the OPeNDAP BES
#
# chkconfig: 2345 95 05
# description: OPeNDAP BES is a modular framework allowing access to
# data files
# processname: besctl
# config: @sysconfdir@/bes/bes.conf
# pidfile: @localstatedir@/run/bes.pid
# Path to the besctl script. Note: If the BES is installed using a prefix
# that is not set in the besctl script, add '-i <bes_prefix>' to the value
# of besctl here. This should only be needed in unusual situations.
prefix=@prefix@
exec_prefix=@exec_prefix@
besctl=@bindir@/besctl
prog=besd
RETVAL=0
LD_LIBRARY_PATH="@libdir@:${LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH
# See how we were called.
case "$1" in
start|stop|status|restart|status|pids|kill|help)
what=${1}
shift
other=$@
echo "${besctl} ${what} ${other}"
${besctl} ${what} ${other}
RETVAL=$?
;;
*)
echo $"Usage: $prog {start|stop|restart|status|pids|kill|help}"
exit 1
esac
exit $RETVAL