[Main]
Type = oneshot
Version = %%VERSION%%
Description = "rc-local user service"
User = ( user )
MaxDeath = 3
Notify = 4
TimeoutStart = 3000

[Start]
Execute = ( 
	backtick -n USER { whoami }
	importas -S USER
	backtick -n HOME { homeof ${USER} }
	importas -S HOME
	foreground { sh ${HOME}/.66/rc.local }
	elglob -0 scripts ${HOME}/.66/script/rc-local/*.start
	forx -E script { ${scripts} }
	sh -c "${script}" 
	)

[Stop]
Execute = (
	backtick -n USER { whoami }
	importas -S USER
	backtick -n HOME { homeof ${USER} }
	importas -S HOME
	elglob -0 scripts ${HOME}/.66/script/rc-local/*.stop
	forx -E script { ${scripts} }
	sh -c "${script}" 
	)
