/srv/irclogs.ubuntu.com/2013/03/06/#upstart.txt

=== Demonho is now known as X-warrior`
=== MrSmurf is now known as xSmurf
cwillu_at_workdoes upstart do its own permissions checking?06:34
cwillu_at_workI think I've got /etc/dbus-1/system.d/Upstart.conf set to permit one more message through as a particular user to a particular service, but I'm getting a com.ubuntu.Upstart0_6.Error.PermissionDenied06:35
cwillu_at_work(without the Upstart.conf change, I get a generic dbus error instead)06:36
cwillu_at_workhmm, this appears to be something related to the (new?) session support06:45
cwillu_at_work--no-session on the kernel command line makes it work right06:45
xnoxcwillu_at_work: interesting, what upstart version is that?10:30
slava_dphey everyone. in rhel6, what's the best way to switch uid and gid for a daemon?11:57
slava_dpI'm writing an upstart job and setuid and setgid are not supported in rhel611:57
maveasHi guys. Does upstart emit events when a sysvinit script successfully starts? I am asking because I am about to write an upstart script for openerp and I need it to start on running postgres but I am quite new with init, both sysvinit and upstart..13:05
maveasAnd I don't think it does but I'm not sure13:06
maveasI am thinking upstart is watching for a exit 0 but that doesn't really tell if the job is running ?13:07
maveasBeen reading a lot of documentation and from what I can understand this is how it works. Am I right? So as I need to control for a running postgres instance I could either do some pre-start code in my upstart script for OpenERP or I could create an upstart script for postgres so my OpenERP upstart script start when upstart emit that postgres is running.13:24
maveasNever mind guys. Just realised that I can do a initctl emit postgres-running from the postgres sysvinit script. :)13:42
jodhmaveas: yes, that is the best method. However, you'll need to ensure you only emit that event when postgresl is actually *ready* (not necessarily the same time as when it *starts*)13:49
maveasYeah, I'm still looking into that. :)13:55
maveasThanks13:55
SpamapSjodh: Hey, just wanted to give you a "nicely done" on the way upstart handles logging.16:17
SpamapSjodh: I contrived a "worst case" scenario yesterday and I couldn't break upstart.16:17
jodhSpamapS: cool - good to hear ;-)16:18
SpamapSjodh: I do believe it will break down on a *REALLY* big box with *lots* of processes (like, 64 CPU w/ 10000 processes writing)16:18
SpamapSjodh: but with 1CPU, 50 processes writing as hard as they can, init was using about 20% of the CPU, with the other 80% going to the kernel handling buffer shuffling16:19
SpamapSjodh: I was wondering if we could somehow turn that into a test actually16:19
pseudonymousanyone feel like translating "service disable -my service-" and "service stop -my service-" to upstart-speak ? In ubuntu I have two services, whoopsie and cron that NEED to be dead for the purposes of a benchmark, but quick as I kill them, they reappear18:30
SpamapSpseudonymous: disable is rough, but 'service stop -my-service-' works fine18:33
SpamapSpseudonymous: don't kill them, 'service cron stop' them18:33
SpamapSpseudonymous: disable would be for reboots. For that you can 'echo manual >> /etc/init/whoopsie.override'18:34
pseudonymousSpamapS: thanks so very much, I was really losing my temper with this stuff :D18:36
xnoxpseudonymous: see http://upstart.ubuntu.com/cookbook/  it actually tells one how to do that ;-)18:47
maveasYou guys behind Upstart. I just want to say thank you and to hug you.. As you may have noticed I started exploring Upstart today and I love it! :)18:56
maveasIt really makes a lot of sence and I hope it will become de facto on most systems. <3 :b18:57
maveasKudos18:58
pseudonymousmaveas: I couldn't disagree more </3 systemD forever and ever and ever and ever and ever.. :)  And with that, good night ! But thanks still for the effort19:16
SpamapSpseudonymous: I invite you to read the code of systemd and of upstart, and then re-assert what you are saying.19:20
SpamapSpseudonymous: I know systemd has a ton of user-sugar .. but.. buyer beware. Its got a lot of easy, not much simple.19:21
maveasThere's a lot of fuss around Upstart but I think it's because people just don't understand it yet (and won't try to)..19:21
maveasHe'll come around some day ^19:22
SpamapSmaveas: unfortunately, the rest of the Linux world got tired of waiting for Upstart to fix their problems, and so they invented systemd.19:31
SpamapSmaveas: it may take years for that to fail.. or systemd may become "the one true thing"19:31
xnoxSpamapS: i wonder if you failed the double negative there. </3 is "do not love" where as <3 "do love", thus pseudonymous is on the upstart side.19:52
cwilluxnox, whatever's in precise20:34
cwillu1.5-0ubuntu520:35
SpamapSxnox: I'm not sure I understand what you're saying.20:49
cwilluSpamapS, </3 is a broken heart20:50
SpamapSI think pseudonymous meant <3 .. since pseudonymous was disagreeing with maveas hoping that it will become de facto on most systems20:52
magicrobotmonkeyI've got a stop/killed <pid> job I can't get rid of. What should I do?21:42
SpamapSmagicrobotmonkey: https://bugs.launchpad.net/upstart/+bug/40639722:55

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