[Main]
Type = classic
Version = 0.1.0
Description = "lldpd daemon"
User = ( root )
Depends = ( mount-rw )
Options = ( log )

[Start]
Execute = (
	# lldpd in foreground (-d -d -d), matching debian/sv/lldpd.
	# Extra flags from /etc/default/lldpd as DAEMON_ARGS.
	
	envfile -I /etc/default/lldpd
	importas -sCuD "" DAEMON_ARGS DAEMON_ARGS
	
	exec /usr/sbin/lldpd ${Args} ${DAEMON_ARGS}
)

[Logger]
RunAs = s6log
Backup = 3
MaxSize = 2000000
Timestamp = tai
Destination = /var/log/lldpd-s6
