-# description: SLC Server
+# description: Argeo SLC (http://www.argeo.org)
# Source function library.
# Source function library.
-. /etc/rc.d/init.d/functions
+. /etc/osgiboot/osgi-service-init-functions.sh
+# Application id (must be in line with header)
+APP=slc
-start() {
- /usr/sbin/osgi-service slc start
- action $"Start SLC" /bin/true
- return $RETVAL
-}
-
-stop() {
- /usr/sbin/osgi-service slc stop
- action $"Stop SLC" /bin/true
- return $RETVAL
-}
-
-# See how we were called.
+ osgi_service_start $APP
+ osgi_service_stop $APP
+ osgi_service_start $APP
- /usr/sbin/osgi-service slc-server status
+ osgi_service_status $APP
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"