/srv/irclogs.ubuntu.com/2014/02/10/#upstart.txt

Mariano9hi xnox, jodh I need to export an SSL cert before respawning the service..with a pre-start stanza it's not working13:00
Mariano9like: pre-start script13:01
Mariano9export SSL_CERT=/path13:01
Mariano9echo 'text'13:01
Mariano9end script13:01
xnoxMariano9: things you export in pre-start, don't propagate elsewhere.13:03
xnoxMariano9: you can use the global "export SSL_CERT=/path" upstart stanza, then it will be available during all stages (pre-start, script/exec, post-start, pre-stop, post-stop, etc.)13:04
Mariano9ok..let's see13:04
Mariano9is "env" stanza what you mean?13:05
Mariano9xnox: 13:08
xnoxMariano9: yeah, that. =) see $ man 5 init13:08
Mariano9ok, tried with env and export stanzas, none worked for my example13:12
Mariano9which user is the one who runs upstart scripts?13:13
Mariano9xnox: could you take a look at my redis-commander upstart script? I'm trying to export an SSL cert path to allow twitter sensu hander to pick it up14:09
Mariano9https://gist.github.com/Mariano-gon/891656114:10
xnoxMariano9: what's running on port 3030?14:14
xnoxMariano9: redis-commander itself or something else?14:14
Mariano9sensu client14:14
xnoxMariano9: ok. looks all correct. But the environmet variable only affect redis-commander.14:15
Mariano9i think you're right..(thinking here)..14:16
xnoxMariano9: since nc, doesn't do ssl =)14:16
xnoxMariano9: http://serverfault.com/questions/102032/connecting-to-https-with-netcat-nc14:16
xnoxMariano9: if sensu client is expecting an ssl connection, use openssl s_client -connect instead.14:16
xnoxwhat's the certificate for? and who should be validating requests from where using it?14:17
Mariano9the client-server sensu uses twitter.rb (a handler script) to connect with twitter API and send a direct message to X account14:17
Mariano9this connection to the API needs SSL certification14:17
xnoxMariano9: thus the certificate should be in the environment of the sensu process, and has nothing to do with the above job.14:18
Mariano9yes, now I realize that14:19
Mariano9:)14:19
Mariano9sorry14:19
xnox=)))14:19
Mariano9other one14:19
Mariano9any ideas about rackspace plugin script?14:19
Mariano9that one does have an env issue14:20
xnoxre:bundler? didn't play with that yet.14:20
Mariano9yeap14:20
Mariano9ok14:20
Mariano9let me know if there's something I can help you with14:20
TJ-I have an upstart job stuck in "stop/killed" state (ureadhead-other), with init (pid 1) still holding an open log-file for the job, which I need closing (the log-file is inside a chroot that needs umount-ing). The job process no longer exists. How do I proceed?14:58
=== mc_bluebeard_ is now known as mc_bluebeard
=== mc_bluebeard_ is now known as mc_bluebeard
smallfoot-Ubuntu and Canonical are missing the opportunity for upstart in Debian, much thanks to the CLA23:09
smallfoot-The CLA is harming adoption of Upstart23:09
smallfoot-Debian could have went with Upstart, but now they are going with systemd instead23:10

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