start on stopped finish

# Stop when the Software Update tool is about to install an update.  The tool
# uses upstart to restart jobs when the installation is complete.
stop on started start_update

script
	if [ -d /dev/cgroup ] ; then
		mkdir -p /dev/cgroup/web
		echo $$ > /dev/cgroup/web/tasks
	fi
	exec env CHARSET="UTF-8" /usr/bin/LunaDownloadMgr 
end script

respawn


