#!/bin/bash
# Start-Script for seafile/seahub

SEAFILE="/raspCloud/seafile-server-2.0.1/seafile.sh"
SEAHUB="/raspCloud/seafile-server-2.0.1/seahub.sh"

case "$1" in
  start)
    $SEAFILE start
    $SEAHUB start-fastcgi
    ;;
  stop)
    $SEAHUB stop
    $SEAFILE stop
    ;;
  *)
    echo "Usage: seafile {start|stop}"
    exit 1
    ;;
  esac
exit 0
