Package: binfmt-support

If Upstart jobs that have a corresponding init script are tasks, then startpar does not continue the boot sequence past that init script (because the job is considered "stopped").

Also, it would be nice to have binfmt-support be disable when the job is stopped.

I have attached a patch to accomplish this.

Note that since no stop on stanza has been added, the disable will not be unnecessarily run on shutdown (I think).

Thanks,
--
Cameron Norman
diff --git a/init/upstart/binfmt-support.conf.in b/init/upstart/binfmt-support.conf.in
index 44d5aac..bb61d09 100644
--- a/init/upstart/binfmt-support.conf.in
+++ b/init/upstart/binfmt-support.conf.in
@@ -26,6 +26,5 @@ author		"Colin Watson <cjwat...@debian.org>"
 
 start on filesystem
 
-task
-
-exec @sbindir@/update-binfmts --enable
+pre-start exec @sbindir@/update-binfmts --enable
+post-stop exec @sbindir@/update-binfmts --disable

Reply via email to