/srv/irclogs.ubuntu.com/2011/04/28/#upstart.txt

=== ev_ is now known as ev
jMCgKeybuk: ETA until the new, super great features are released? (Automatic logging, run as user, capabilities)20:54
KeybukjMCg: I don't have a patch for automatic logging ;)21:36
jMCgKeybuk: how difficult is it to achieve that everything upstart runs through exec, pre-start, post-start, etc... has it's stdout and stderr filtered to /var/log/upstart/service[:instance].log ?21:38
jMCgThat would be really helpful, when you change a config, restart, and all of sudden mysql is givin you the finger and you don't know why.21:40
KeybukjMCg: it requires a logging service running that receives input from those file descriptors and writes to the filesystem21:41
Keybukwhile coping with buffering due to read-only filesystem during boot21:41
Keybukand deals with a filesystem being fundamentally read-only (Chromium OS, for example)21:42
Keybukand also avoiding the problem where if that logging service dies, every single process on the system immediately SIGPIPEs21:42
jMCgKeybuk: I suppose SMF simply requires you to run your Solaris on an Filesystem that doesn't suck... - or it logs only services which depend on milestones >= filesystem21:44
KeybukI don't know, I haven't looked at SMF in years21:45
jMCgAnd I haven't looked at it in.. hours.21:45
JanCKeybuk: weren't you going to include a logging daemon, cron, initd, at, udevd, a dbus daemon and an X session manager into upstart?  ;-)22:07
jMCgNo X please, it's obsolete. But we could put in a kernel.22:08
JanC:P22:09
KeybukJanC: a variation of "include into" that means people could pick and chose their components and defaults22:11
Keybukupstart is not systemd after all ;)22:11
JanCwell, I think personally you don't need cron into upstart, but a time-based service could issue events that upstart then handles22:13
jMCgIIRC, launchd has something of that kind22:14
JanCwhich is probably what you were thinking already22:14
KeybukJanC: I see that as the same thing22:15
jMCg"cgroups are used to track service processes, instead of PIDs. This means that daemons cannot "escape" systemd even by double-forking."23:08
ionThere are problems with using cgroups like that, which is why Upstart will go with an approach based on proc connector.23:09
jMCgI thought it used ptrace?23:09
ion“will go”23:10
KeybukjMCg: and yet systemd explicitly recommends software doesn't daemonize23:11
Keybukman daemon on a sd system23:11
Keybukso I guess that works well for them23:11
jMCgKeybuk: what does upstart recommend?23:12
Keybuk"Moreover, since some of these steps interfere with process monitoring [...] of the init system is recommended not to execute them"23:12
KeybukjMCg: Upstart recommends that if your software doesn't work with the init daemon, you file a bug on the init daemon ;)23:12
jMCg+1 :)23:13
JanCwell, I guess there are several ways to handle forking etc., and all have pros & cons?23:13
JanCthe easiest is if services are well-behaving themselves  ;)23:14
ionDaemonizing can’t really be thought as bad behavior per se.23:15
ionIn fact it can used as a good indicator about when the daemon is ready.23:16
JanCright, but I was thinking more about starting sub-processes and then not keeping track of them23:16
jMCgheh.. SMF has killed my "daemons" after a timeout (usually 60) seconds, when I forgot to add a '&'23:17
JanCsombody complained about the earlier23:17
JanCabout that23:17
jMCgThat was me.23:17
JanC;)23:17
jMCgI've got a bug on that.23:17
jMCghttps://issues.apache.org/jira/browse/TS-75523:18
jMCgI said if nobody complains, I'll commit that shit. Nobody's complained in three days. I think I can commit it.23:19
JanChehe, we just set a rule for the new ubuntu-be locoteam leadership council "if nobody complains within 7 days, a proposal is accepted"  ;)23:21
jMCgHow long can someone complain about that rule, or is that instantly valid?23:22
JanCit was proposed last Monday, and will be formally accepted next Sunday  ;)23:22
jMCgOn a sunday, that's unfair, people are hungover on sunday.23:23
jMCgwh00t. I just realized, I haven't tested this shit.23:23
JanCSunday evening  :P23:24
JanCanyway23:24
JanCit was already accepted by everybody important today  :P23:24

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