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/synoindexd.conf
description "configure network device"
author "Web Application Team"

start on started pgsql-adapter
stop on stopping pgsql-adapter

expect fork

respawn
respawn limit 5 10

pre-start script

# make sure pgsql is running
if ! /usr/syno/sbin/synoservice --status pgsql > /dev/null 2>&1; then
	echo "PGSQL service is disabled. Skip..."
	stop
	exit 1
fi

end script

exec /usr/syno/sbin/synoindexd

post-stop script
    echo "Stopping Synology Index Daemon..."
    killall synoindexscand   > /dev/null 2>&1 || true
    killall synoindexworkerd > /dev/null 2>&1 || true
    killall synoindexplugind > /dev/null 2>&1 || true
    killall synomediaparserd > /dev/null 2>&1 || true
end script