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

[Start]
Execute = (
	# gdomap in foreground (-f), matching debian/sv/gdomap.
	
	envfile -I /etc/default/gdomap
	importas -sCuD "-p -c /etc/GNUstep/gdomap_probes -j /var/run/gdomap" GDOMAP_ARGS GDOMAP_ARGS
	
	foreground { install -d -m 0755 /run/gdomap }
	
	exec /usr/bin/gdomap ${Args} ${GDOMAP_ARGS}
)

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

[Environment]
Args = !-f
