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/hotplugd.conf
author "System Integration Team"
description	"daemon for handle hotplug event"

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

expect fork
oom score -999

respawn
respawn limit 5 10

console log

pre-start script
	if /usr/syno/bin/synobootseq --is-booting-up > /dev/null; then
		# Clean up printers section in smb.conf
		/usr/syno/bin/synoprint --disable > /dev/null 2>&1 || true
		# Clean up eSATA and USB section in smb.conf when booting up
		/usr/syno/bin/synousbdisk -rcclean >> /dev/null 2>&1 || true
	fi
end script

exec /usr/syno/sbin/hotplugd

post-start script
	/usr/syno/sbin/eunit_info || true

	sleep 1
	killall -s USR1 hotplugd &> /dev/null
end script
# vim:ft=upstart