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: //etc.defaults/init/synomkthumbd.conf
description "configure network device"
author "Web Application Team"

start on syno.share.ready
stop on runlevel [06]

expect fork

respawn
respawn limit 5 10

exec /usr/syno/sbin/synomkthumbd

post-stop script
CheckProcDead() {
	count=5
	while [ $count -gt 0 ]; do
		killall $1 > /dev/null 2>&1 || true
		if ! pidof $1 > /dev/null 2>&1 ; then
			return 0
		fi
		sleep 1
		count=`expr $count - 1` || true
	done
}
echo "Stopping Synology Make Thumb Daemon..."

# ensure that mkthumb is dead before volume removed
CheckProcDead synothumb
CheckProcDead convert
CheckProcDead dcraw


end script