Menu

[r576]: / branches / Release-4-1-2 / php-java-bridge / php-java-bridge.service  Maximize  Restore  History

Download this file

65 lines (59 with data), 1.2 kB

 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
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh
#
# php-java-bridge Startup script for the PHP/Java Bridge
#
# chkconfig: - 84 16
# description: The PHP/Java Bridge allows PHP scripts to access java based \
# applications running in a java application server
# processname: php-java-bridge
# pidfile: /var/run/php-java-bridge.pid
# config: /etc/php.d/java.ini
prog=php-java-bridge
RETVAL=0
# Source function library.
if test -f /etc/rc.d/init.d/functions; then
. /etc/rc.d/init.d/functions
else
killproc() {
kill `cat /var/run/php-java-bridge.pid`
}
fi
start() {
echo -n $"Starting $prog: "
daemon $prog
RETVAL=$?
echo
[ $RETVAL = 0 ] && test -d /var/lock/subsys && touch /var/lock/subsys/$prog
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc $prog
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/$prog /var/run/$prog.pid
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status $prog
RETVAL=$?
;;
restart)
stop
start
;;
faststart)
start
;;
*)
echo $"Usage: $prog {faststart|start|stop|restart|status}"
exit 1
esac
exit $RETVAL
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.