/srv/irclogs.ubuntu.com/2009/06/26/#upstart.txt

ionhttp://github.com/ion1/vim-highlight Output syntax-highlighted HTML version of input using Vim10:09
ion(There are syntax highlighters for a huge amount of formats in Vim)10:11
Keybukion: we could do with one for Upstart jobs ;)11:21
johnfluxhello?12:16
johnfluxthe channel is very quiet :-)12:16
johnfluxanyone around?12:17
Keybukhello!12:30
johnflux:-)12:31
johnfluxKeybuk, just wondering if dbus support has been added yet12:31
Keybukyes, that was added in 0.5.012:31
johnfluxthe front webpage says it has, but there's no mention on the wiki on using it, and I can't find it running "qdbus --system"12:31
johnfluxah12:32
Keybukmany distributions still use 0.3.x though12:32
johnfluxyeah12:32
johnfluxthat explains why I don't have it in ubuntu12:32
johnfluxso..  does this mean that as a normal user I can see what services are running?@12:32
Keybukcorrect12:32
Keybukthough that is also true of 0.512:32
johnfluxcan I map it to a PID?12:32
Keybukwhich limits method calls to root only12:32
johnfluxeven dbus calls are limited to root only?12:33
Keybukyes12:33
Keybukthough it's possible that 0.6 may open up the "status information" calls12:33
johnfluxhmm - can I use policykit or something to get permissions to use it?12:33
johnfluxwithout having to prompt the user each time12:33
Keybuksince they're done through the Properties interface now12:33
KeybukPK support is somewhere on the wishlist12:33
johnfluxI'm the maintainer of the 'task manager' thing in kde12:33
johnfluxso it shows the list of running processes12:33
johnfluxit would be nice to also show the list of running services12:34
johnfluxand to map between them12:34
johnfluxso that when you right click on the apache process, you could kill it properly, rather than sending a signal12:34
Keybuk*nods*12:35
Keybuktell you what, after a few seconds thought, I'll definitely agree that the properties interface will be public12:35
Keybukplus the "Get" interfaces12:35
Keybuksince most of that detail shows up with Introspection anyway ;)12:35
* johnflux nods12:35
Keybukthe root-only methods will be12:36
johnfluxin particular I want to be able to get the pid12:36
johnfluxwould that be possible?12:36
Keybuk  com.ubuntu.Upstart.ReloadConfiguration12:36
Keybuk  com.ubuntu.Upstart.EmitEvent12:36
Keybuk  com.ubuntu.Upstart.Job.Start12:36
Keybuk  com.ubuntu.Upstart.Job.Stop12:36
Keybuk  com.ubuntu.Upstart.Job.Restart12:36
Keybuk  com.ubuntu.Upstart.Instance.Start12:36
Keybuk  com.ubuntu.Upstart.Instance.Stop12:36
Keybuk  com.ubuntu.Upstart.Instance.Restart12:36
Keybuk  org.freedesktop.DBus.Properties.Set12:37
Keybukand the public methods will be12:37
Keybuk  com.ubuntu.Upstart.GetJobByName12:37
Keybuk  com.ubuntu.Upstart.GetAllJobs12:37
Keybuk  com.ubuntu.Upstart.Job.GetInstance12:37
Keybuk  com.ubuntu.Upstart.Job.GetInstanceByName12:37
Keybuk  com.ubuntu.Upstart.Job.GetAllInstances12:37
Keybuk  org.freedesktop.DBus.Properties.Get12:37
Keybuk  org.freedesktop.DBus.Properties.GetAll12:37
Keybuk  org.freedesktop.DBus.Introspectable.Introspect12:37
johnflux.GetInstanceByPid  ? :-) 12:38
Keybukdoes that sounds reasonable?12:38
johnfluxit does12:38
Keybukjohnflux: believe it or not, there's no such lookup path in Upstart ;-)12:38
Keybukjohnflux: though you're right - there should be - could you file a wishlist bug for that one12:38
johnfluxKeybuk, right, I was hinting at adding it :-)12:38
Keybukalso can you file a wishlist bug for changing the D-Bus conf - pasting the above ;)12:38
johnfluxwhat's the url for this bug reporter?12:39
Keybukhttp://bugs.launchpad.net/upstart12:40
johnfluxKeybuk, would i want getJobByPid   or GetInstanceByPid  ?12:42
johnfluxinstance?  both?12:42
johnfluxI don't get the difference between instance and job12:43
Keybukboth technically12:43
Keybukarguably that should return Job, Instance and Process12:44
Keybukcom.ubuntu.Upstart.LookupPid (Int32 pid) => (ObjectPath job, ObjectPath instance, String process)12:44
johnfluxKeybuk, that's a suggestion for a new call?12:51
johnfluxKeybuk, can a job/instance have an icon?12:53
johnfluxfor prettiness12:53
Keybukicons are pretty much left to front-end implementation to decide for now ;)12:55
Keybukit wouldn't be much to add an icon stanza like description and author12:55
Keybukfeel free to add a wishlist bug ;)12:55
Keybukjohnflux: right, given com.ubuntu.Upstart.LookupPid (1234) you'd expect a reply like12:55
Keybuk  ( "/com/ubuntu/Upstart/jobs/test", "/com/ubuntu/Upstart/jobs/test/_", "pre-start" )12:55
Keybukie. it says that pid 1234 is the pre-start process of the default instance of the test job12:56
johnfluxhttps://bugs.launchpad.net/upstart/+bug/39250012:56
johnfluxI can't work out how to make it a wish12:56
johnfluxit didn't ask me12:56
KeybukI can do that12:59
johnfluxthanks13:00
johnfluxhttps://bugs.launchpad.net/upstart/+bug/39250213:03
johnfluxKeybuk, the other one13:03
johnfluxKeybuk, I'm looking forward to making kde integrate nicely with upstart13:03
johnfluxit could all come together in such a slick way13:03
johnfluxKeybuk, do you know the status of other major distributions and upstart? 13:04
johnfluxKeybuk, redhat, suse etc13:04
Keybukjohnflux: feel free to add a wishlist for icon support as well13:06
KeybukFedora are using Upstart 0.3.x currently13:07
KeybukI'm hoping they'll use 0.6.0 when it's released13:07
KeybukUbuntu is using 0.3.x and will use 0.6.0 when it's released13:07
Keybukwe had a productive discussion with Debian this week, and it's favourable for Debian to use 0.6.0 when it's released13:07
KeybukI understand that RedHat will ship Upstart with RHEL 6, but not sure which version13:08
Keybuka SuSE maintainer is pushing for adoption there13:08
Keybukthe only trouble with doing unit tests is you end up spending a day catching up on testing every time you write new code :-/16:59
sadmac2Keybuk: yeah.. its fun17:47
Keybukof course, that's better than spending a week hunting down bugs you introduced17:47
wasabiNothing to do with the conversation, but I find it interesting... sometimes unit tests aren't appropriate for just that reason.17:48
sadmac2Keybuk: lazy programmers write fewer bugs, but the industrious ones have less trouble finding them. Its cruel really.17:48
=== notting_ is now known as notting

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!