/srv/irclogs.ubuntu.com/2013/02/14/#upstart.txt

afourniernobody has problem updating busybox with opkg ?08:49
=== phroddon_ is now known as phroddon
afourniercould be related http://trac.freesmartphone.org/ticket/4309:06
afournier5 years ago :p09:07
jodhafournier: wrong channel?09:12
afournieryes09:19
afournierindeed09:19
* afournier needs more coffee09:20
afournierthanks jodh09:20
afournierbtw, i am using upstart with busybox, and ntpd for instance, so i do something like "exec ntpd -l -p pool.ntp.org", ntpd then output to stdout, and everything ends in /var/log/upstart/myjob.log as expected. But is there a stanza to output that in syslog automaticaly, or do i have to append "| logger" ?09:39
afournieri'd like every single output to go to the syslog...09:40
afournierexec >/dev/kmsg 2>&109:47
xnoxwe don't have: "console log syslog" yet10:13
xnox(e.g. log to both /var/log/upstart/myjob.log and syslog10:14
xnox)10:14
tom0815hello, I have one question: is it possible with upstart to check, if a network service is running on an other host and only a local server, if the other network service is available?14:46
xnoxtom0815: one can do anything in the pre-start script, see cookbook.14:49
xnoxtom0815: are you after failover? in that case look up hearbeat that can handover networked services for you like that14:50
tom0815thank you, I have a two servers. on one a mysql db is running and i want to start a second service on the other service, but only, if mysql db is up and running on the first server14:52
tom0815so it is no failover scenario14:52
xnoxtom0815: in pre-start script try to ping mysql port on the mysql host.14:53
xnoxtom0815: and stop if not available.14:53
xnoxtom0815: your job should start on when network is up14:54
xnoxtom0815: and you probably want a loop & timeout to try connecting to mysql later.14:54
xnoxand eventually give up14:54
xnoxtom0815: see cookbook for (linked in the topic) about pre-start scripts, and starting on when network is up.14:55
tom0815thanx alot!  I will have a look to the cookbook15:07
afournierthat's funny i am working on the same thing (almost)15:56
afournierand it's a pain :)15:57
afournieri did something like mysqladmin --wait=10 ping15:59
afournierand then i want to "initctl emit --no-wait database-up"15:59
=== doko__ is now known as doko
afournieris it ok to call "restart" from the post-start script in case something failed ?16:09
afournieri know it could lead to infinite loop, but i don't know if it's possible16:10

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