HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //var/packages/StorageAnalyzer/scripts/start-stop-status
#!/bin/sh

. /var/packages/StorageAnalyzer/scripts/pkg_utils
APP_PATH="/usr/syno/synoman/webman/3rdparty/$SYNOPKG_PKGNAME"

start()
{
	CopyTemplateAndBinaryLink
	CopyRewriteRule
	ShowSchedule
	return
}

stop()
{
	HideSchedule
	StopSynoreport
	RemoveRewriteRule
	RemoveTemplateAndBinaryLink
	return
}

case $1 in
	start)
		start
		exit 0
	;;
	stop)
		stop
		exit 0
	;;
	status)
		if [ -e ${APP_PATH} ]; then
			exit 0;
		else
			exit 1;
		fi
	;;
	killall)
		;;
	log)
		exit 0
	;;
esac

exit 0