#!/bin/bash
# fnOS lifecycle entry: start / stop / status
DIR="$(cd "$(dirname "$0")" && pwd)"
case "${1:-}" in
  start)  exec "$DIR/start.sh" ;;
  stop)   exec "$DIR/stop.sh" ;;
  status) "$DIR/status.sh" >/dev/null 2>&1 && exit 0 || exit 3 ;;
  *) exit 1 ;;
esac
