source: trunk/us3-listen@ 27

Last change on this file since 27 was 20, checked in by gegorbet, 9 years ago

further minor mods for Airavata 0.16

  • Property svn:executable set to *
  • Property svn:keywords set to LastChangedDate Author
File size: 902 bytes
Line 
1#!/bin/sh
2########################################################################
3# Begin $rc_base/init.d/
4#
5# Description : gridctl us3-listen daemons (listen, manage-us3-pipe)
6#
7# Authors : Gary Gorbet
8#
9# Version : 01.01
10#
11# Notes : Goes in /etc/rc.d/init.d
12#
13########################################################################
14
15. /etc/init.d/functions
16
17case "${1}" in
18 start)
19 echo -n "Starting us3-listen daemons ..."
20 /usr/bin/php ~us3/lims/bin/listen.php &
21 echo ""
22 sleep 1
23 ${0} status
24 ;;
25
26 stop)
27 echo -n "Stopping us3-listen daemons ..."
28 killproc /usr/bin/php
29 ;;
30
31 restart)
32 ${0} stop
33 sleep 1
34 ${0} start
35 ;;
36
37 status)
38 ps -aef|grep -v grep|egrep 'listen.php|us3-pipe'
39 ;;
40
41 *)
42 echo "Usage: ${0} {start|stop|restart|status}"
43 exit 1
44 ;;
45esac
46
47# End $rc_base/init.d/
Note: See TracBrowser for help on using the repository browser.