Menu

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

Download this file

57 lines (50 with data), 997 Bytes

 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
#!/bin/bash
#
# 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
# Source function library.
. /etc/rc.d/init.d/functions
prog=php-java-bridge
RETVAL=0
start() {
echo -n $"Starting $prog: "
daemon $prog
RETVAL=$?
echo
[ $RETVAL = 0 ] && 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
;;
*)
echo $"Usage: $prog {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.