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/init/synorelay-boot-state.conf
author "Cloud Service Team"
description "broadcast the boot state"

console log

task
start on syno.network.ready
stop on runlevel [0]

post-start script
	if ! /usr/syno/sbin/synoservice --is-enable synorelayd > /dev/null 2>&1 ; then
		count=60
		while [ $count -gt 0 ]; do
			if /usr/syno/sbin/synorelayd -b up > /dev/null 2>&1 || synoservice --status synorelayd > /dev/null 2>&1 ; then
				exit 0
			fi
			sleep 1
			count=`expr $count - 1` || true
		done
	fi
end script