Arnaud Quette
2008-Jul-18 21:09 UTC
[Nut-upsdev] Feedback and help in porting the NUT sysV init script to upstart
hi there, first, kudos to Scott. You guy rock with this revolutionizing (and so logic) idea ;-) next, a personal point of view about the lack of upstream adoption of upstart: I wanted to provide an upstart script for NUT for some time, but never found enough matching example to do so. the embedded scripts only address inittab, and the replacement-initscripts are unreachable (see below) and far too basic for being really helpful! if you want a massive adoption, provide some "real world" examples for upstreams, really ;-) so, a mutual help in getting the NUT init script ported would both help you and me. good deal ;-) btwn I've included the upstart "support" in NUT 2.4 roadmap. I've attached the original Debian NUT script, along with a lazy and drafty port attempt. note that I'm currently giving some reflexion cycles on optimizing NUT integration wrt init (ex: no need to clean stop daemons upon standard shutdown). feedback, comment and help welcome... I can also give some more details of the problematic. another point (possibly already addressed): you should also take a look at the HAL replacement (DeviceKit) since it should (must?) somehow impact upstart (at least through signaling), or improve it?! I will soon post on the new dk mailing a proposition for the power management. if you also have some feedback there... last note, there is a broken link on http://upstart.ubuntu.com/faq.html#example-jobs-what should point? https://code.edge.launchpad.net/~scott/upstart/replacement-initscripts cheers, Arnaud -- Linux / Unix Expert R&D - MGE Office Protection Systems - http://www.mgeops.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ Free Software Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080718/1cce6427/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: nut.init Type: application/octet-stream Size: 4332 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080718/1cce6427/attachment.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: nut.upstart Type: application/octet-stream Size: 1340 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080718/1cce6427/attachment-0001.obj
Scott James Remnant
2008-Jul-31 19:21 UTC
[Nut-upsdev] Feedback and help in porting the NUT sysV init script to upstart
On Fri, 2008-07-18 at 23:09 +0200, Arnaud Quette wrote:> next, a personal point of view about the lack of upstream adoption of > upstart: > I wanted to provide an upstart script for NUT for some time, but never > found enough matching example to do so. > the embedded scripts only address inittab, and the > replacement-initscripts are unreachable (see below) and far too basic > for being really helpful! > if you want a massive adoption, provide some "real world" examples for > upstreams, really ;-) >Upstart is not yet finished, and the job definition format undergoes incompatbile changes with each minor release. For this reason, I would not recommend migrating your service to using an Upstart job at this time.> another point (possibly already addressed): you should also take a > look at the HAL replacement (DeviceKit) since it should (must?) > somehow impact upstart (at least through signaling), or improve it?! > I will soon post on the new dk mailing a proposition for the power > management. if you also have some feedback there... >The DeviceKit author and I are friends, are very much in communication. Scott -- Have you ever, ever felt like this? Had strange things happen? Are you going round the twist? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080731/968eb478/attachment.pgp