]> git.argeo.org Git - gpl/argeo-slc.git/blob - dist/slc/src/main/rpm/etc/init.d/slc
Reactivate:
[gpl/argeo-slc.git] / dist / slc / src / main / rpm / etc / init.d / slc
1 #!/bin/bash
2 #
3 # slc Argeo SLC
4 #
5 # chkconfig: 3 92 92
6 # description: Argeo SLC (http://www.argeo.org)
7
8 # Source function library.
9 . /etc/osgiboot/osgi-service-init-functions.sh
10
11 # Application id (must be in line with header)
12 APP=slc
13
14 # main
15 case "$1" in
16 start)
17 osgi_service_start $APP
18 ;;
19 stop)
20 osgi_service_stop $APP
21 ;;
22 restart)
23 osgi_service_stop $APP
24 osgi_service_start $APP
25 RETVAL=$?
26 ;;
27 status)
28 osgi_service_status $APP
29 ;;
30 *)
31 echo $"Usage: $0 {start|stop|restart|status}"
32 exit 1
33 esac
34
35 exit $RETVAL