marrusl | huh. never noticed this before. if I `ifdown lo` I get a "net-device-down IFACE=lo" event. | 01:03 |
---|---|---|
marrusl | but if I `ifup lo` there's no corresponding net-device-up event. | 01:03 |
* marrusl looks at /etc/network/if-up.d/upstart | 01:06 | |
marrusl | ahhh | 01:06 |
marrusl | ok it's specific to lo | 01:06 |
ali1234 | argh this is a mess | 01:08 |
ali1234 | the "quiesce" code has hardcoded minimum times of 5 seconds | 01:09 |
ali1234 | best case it takes 5 seconds, worst and average case it takes 10 seconds | 01:09 |
ali1234 | none of the jobs actually respond to the first request to stop | 01:10 |
igalic | Is it possible to run pre-start as root, but "start" as setuid user-foo? | 14:13 |
xnox | igalic: often requested feature. that is not available at the moment. | 15:35 |
igalic | xnox: we did the su hack | 15:36 |
xnox | igalic: yeap. | 15:36 |
xnox | igalic: 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 |
prosys | hi | 15:42 |
prosys | i'm trying to run an interactive shell script before lightdm starts... | 15:42 |
igalic | xnox: a colleague of mine after I told him: 17:43:13 < andreasntaflos> my god ... its full of hacks! | 15:43 |
igalic | I passed on, "Patches welcome." | 15:44 |
prosys | i'm thinking on modifying the lightdm.conf to start on stopped myservice | 15:44 |
prosys | and adding myservice.conf to do everything | 15:44 |
prosys | but i can't make it work :\ | 15:44 |
xnox | prosys: "start on starting lightdm" should make your job to run before lightdm, and block lightdm starting. | 15:45 |
xnox | prosys: or do lightdm.override file with "start on stopped myservice" | 15:46 |
xnox | igalic: two jobs is not that hacky, imho ;-) and rather clean. | 15:46 |
prosys | xnox: i've tried that, but for some reason it doesn't show the terminal, boots right into lightdm :| | 15:50 |
prosys | wait | 15:55 |
prosys | i think i've missed something here | 15:55 |
prosys | brb | 15:55 |
prosys | no, no luck :| | 16:00 |
prosys | i have lightdm with autologin | 16:00 |
prosys | and it just starts with no problem | 16:00 |
prosys | and never gets into the interactive shell script i've done | 16:01 |
prosys | do i need to hide plymouth before starting the script ? | 16:02 |
xnox | prosys: what do you mean "interactive shell script", all jobs started by upstart do not have stdin..... | 16:03 |
xnox | prosys: can you paste your "interactive shell script" ? | 16:03 |
prosys | er, it's kinda big | 16:04 |
prosys | but yeah, i need to read input | 16:05 |
prosys | if jobs started by upstart do not have stdin, what options do i have ? | 16:05 |
SegFaultAX | Under what condition does upstart try and respawn a process? | 18:14 |
SegFaultAX | Doing `service foo start` correctly starts foo, but for some reason upstart doesn't think so and starts respawning it. | 18:15 |
SegFaultAX | It does return a successful exit code of 0 upon starting. | 18:15 |
SegFaultAX | Nevermind, the process was forking itself. | 18:19 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!