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/inetd.conf
description "start inetd"
author "Network Infrastructure Team"

console log
start on syno.network.ready

stop on runlevel [06]

expect daemon
respawn
respawn limit 5 10

pre-start script
	/bin/date || true
	echo "Starting inetd"
	/sbin/initctl emit inetd-start-telnetd
	/sbin/initctl emit inetd-start-cups
end script

script
	exec /usr/bin/inetd
end script

pre-stop script
        if [ -f "/tmp/DebugShutdown" ]; then
	        start
        fi
end script

post-stop script
	/sbin/initctl emit inetd-stop-telnetd
	/sbin/initctl emit inetd-stop-cups
	/bin/date || true
	echo "Stopped inetd"
end script