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/3rdparty-services.conf
description	"Syno 3rdparty services"

start on stopped dsm-services and stopped synopkgctl-launcher and syno.autosmallupdate.done

task

console log

env PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin

pre-start script
	if [ -e /var/.UpgradeBootup ]; then
		/usr/syno/sbin/synopkghelper update-all-package feasibility-config || true
	fi
	/usr/syno/etc/rc.sysv/syno-pkg-upgrade.sh start || true
end script

script
	/bin/echo "==================== start 3rdparty-services ===================="
	/bin/date -u
	/sbin/initctl emit --no-wait syno.pkgctl.pkgstart
	for sh in $(/bin/ls -1 /usr/local/etc/rc.d/*.sh 2> /dev/null | /usr/bin/sort); do
		$sh start || true
	done
	/sbin/initctl start synopkgctl-wait-bootup
end script

# vim:ft=upstart