/srv/irclogs.ubuntu.com/2013/01/24/#upstart.txt

eloistHello02:23
eloistI have trouble with an upstart script (on ubuntu 12.04lts) that I've been banging my head against and can't seem to figure out02:23
eloistall I am trying to do is have a script export some env vars before running the actual process, for this i have the following in the script block: ". /root/env.sh"02:24
eloisttrying to start the service, I get the following in my log file: /proc/self/fd/9: 4: .: Can't open /root/env.sh02:25
eloistfile is definitely there though and the permission seem to be right :(02:25
eloisti believe I found the reason and it's perforce changing the line feeds to windows line feeds03:18
munderwo-workHi all. I have a process that is being handled by upstart. I've got it handling SIGTERM signals, and I understand that this is what upstart emits when doing a stop <service>.the problem is that upstart doesnt seem to be waiting for my process to handle the signal and shutdown gracefully. Is there an extra timeout that I need to give upstart to make it wait longer?08:29
munderwo-workAM I misunderstanding what SIGTERM is supposed to do?08:31
jodhmunderwo-work: upstart will indeed send SIGTERM by default (you can change that using the 'kill signal' stanza). It will then wait for up to 5 seconds by default for the job to end. If it doesn't end, upstart will send SIGKILL. If your job needs longer, specify 'kill timeout'. See init(5) for details of both kill options.08:35
SpamapSjodh: well, good morning. Been watching the commits to upstart. Lots of weird new stuff .. still no fix for "my pid is stuck"08:39
SpamapSdoh08:39
mangomanHello, Upstart noob here. I created a new job but when I try to run it I get "Unknown job".  When I run `initctl list` it doesn't show up there, but it does show up in the /etc/init/ folder.14:12
mangomanHow can I get it to recognize it? Using this script: http://wiki.nginx.org/Upstart14:15
xnoxmangoman: try $ sudo initctl start nginx14:24
mangomanxnox: still "unknown job"14:27
xnoxmangoman: $ initctl check-config nginx14:28
afournierhi there !14:28
xnoxmangoman: $ initctl status nginx14:29
xnoxif that all fails, try $ initctl reload-configuration14:29
afournieris it possible to start a task at the end, ie. the login prompt ? 14:29
afournieri know the question is a bit stupid as upstart is based on events14:30
afournierbut it's not like the prompt login has too much depencies, at the same time when it spawns, upstart is still starting other task, and the prompt is hidden by the output14:31
mangomanxnox: thank you14:31
afourniermaybe the best solution would be to turn upstart silent, so only the prompt appears, and other tasks can continue to be started, what do you think ?14:32
xnoxafournier: what do you want to achieve?14:33
xnoxafournier: during boot plymouth usually owns the consolse so one should talk to plymouth to display/ask user questions.14:33
afournieri just want a clean terminal when the machine is starting :)14:34
afournierplymouth ?14:34
afournieri dont have plymouth14:34
xnox=/ then i think your machine is broken horibbly.14:34
afournierit's a headless device with a serial for interface14:34
xnoxi think you do have plymouth, and maybe not know about it.14:34
xnoxyeah, that's fine.14:34
afournieris plymouth embedded in upstart ?14:35
xnoxno.14:35
xnoxno, that would be silly.14:35
afournierthen my distro is broken...14:35
xnoxafournier: i guess you should configure upstart to log to files only and not to the console / output.14:35
xnoxafournier: see cookbook linked from the topic.14:35
afournierxnox: i'll do that, but i am not gonna add plymouth :)14:35
xnoxafournier: =) sure, do what you like ;-)14:36
afournieruntil my distro is not horibbly broken :)14:37
xnoxI'm not entirely happy with upstart-udev-bridge =/16:49
* xnox hoped for some better way to encode matching variables16:49
xnoxhmm... i must "exit 0" from pre-start script?16:55
xnoxjodh: in the usb-creator branch, there is a scary upstart job for you to review =))))17:06
xnoxit's a poor-man's user session job.17:07
JanCafournier: you don't need plymouth to use upstart, but it might still be interesting to look at Ubuntu's default upstart job configs to see how it handles that sort of things20:41
JanC(oh, and plymouth can do text-mode boot, it's not necessarily graphical...)20:42

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