/srv/irclogs.ubuntu.com/2013/09/19/#upstart.txt

marruslhuh.  never noticed this before.  if I  `ifdown lo` I get a "net-device-down IFACE=lo" event.01:03
marruslbut if I `ifup lo` there's no corresponding net-device-up event.01:03
* marrusl looks at /etc/network/if-up.d/upstart01:06
marruslahhh01:06
marruslok it's specific to lo01:06
ali1234argh this is a mess01:08
ali1234the "quiesce" code has hardcoded minimum times of 5 seconds01:09
ali1234best case it takes 5 seconds, worst and average case it takes 10 seconds01:09
ali1234none of the jobs actually respond to the first request to stop01:10
igalicIs it possible to run pre-start as root, but "start" as setuid user-foo?14:13
xnoxigalic: often requested feature. that is not available at the moment.15:35
igalicxnox: we did the su hack15:36
xnoxigalic: yeap.15:36
xnoxigalic: or you can have two jobs. One which is task and run as root and does "start main-job" and the "main-job.conf" only has the exec with setuid.15:38
prosyshi15:42
prosysi'm trying to run an interactive shell script before lightdm starts...15:42
igalicxnox: a colleague of mine after I told him: 17:43:13 < andreasntaflos> my god ... its full of hacks!15:43
igalicI passed on, "Patches welcome."15:44
prosysi'm thinking on modifying the lightdm.conf to start on stopped myservice15:44
prosysand adding myservice.conf to do everything15:44
prosysbut i can't make it work :\15:44
xnoxprosys: "start on starting lightdm" should make your job to run before lightdm, and block lightdm starting.15:45
xnoxprosys: or do lightdm.override file with "start on stopped myservice"15:46
xnoxigalic: two jobs is not that hacky, imho ;-) and rather clean.15:46
prosysxnox: i've tried that, but for some reason it doesn't show the terminal, boots right into lightdm :|15:50
prosyswait15:55
prosysi think i've missed something here15:55
prosysbrb15:55
prosysno, no luck :|16:00
prosysi have lightdm with autologin16:00
prosysand it just starts with no problem16:00
prosysand never gets into the interactive shell script i've done16:01
prosysdo i need to hide plymouth before starting the script ?16:02
xnoxprosys: what do you mean "interactive shell script", all jobs started by upstart do not have stdin.....16:03
xnoxprosys: can you paste your "interactive shell script" ?16:03
prosyser, it's kinda big16:04
prosysbut yeah, i need to read input16:05
prosysif jobs started by upstart do not have stdin, what options do i have ?16:05
SegFaultAXUnder what condition does upstart try and respawn a process?18:14
SegFaultAXDoing `service foo start` correctly starts foo, but for some reason upstart doesn't think so and starts respawning it.18:15
SegFaultAXIt does return a successful exit code of 0 upon starting.18:15
SegFaultAXNevermind, the process was forking itself.18:19

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