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/synowstransfer-adapter.conf
description "WS Transfer/Discovery Adaptor"

author "Network Infrastructure Team"

# this feature depends on nmbd, listen to same event
start on syno.network.ready and syno.share.ready
stop on runlevel [06]

console log

pre-start script
	# install init config
	if [ ! -s /usr/syno/etc/synowstransfer.conf ]; then
		echo "{\"uuid\":\"`uuidgen`\"}" > /usr/syno/etc/synowstransfer.conf;
	fi
	start synowstransferd
	start synowsdiscoveryd
end script

post-start script
end script

pre-stop script
end script

post-stop script
	stop synowstransferd
	stop synowsdiscoveryd
end script

# vim: set ft=upstart: