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: //usr/syno/sbin/synocachepinfiletool-status
#!/bin/sh
service=synocachepinfiletool

if dmsetup table | grep -q "support pin file(1)" ; then
	# Service should start
	if status $service | grep -q "running" ; then
		echo "Check service start: OK"
		exit 0
	else
		exit 1
	fi
else
	# Service no need to start
	if status $service | grep -q "stop" ; then
		echo "Check service stop: OK"
		exit 0
	else
		exit 1
	fi
fi