afournier | nobody has problem updating busybox with opkg ? | 08:49 |
---|---|---|
=== phroddon_ is now known as phroddon | ||
afournier | could be related http://trac.freesmartphone.org/ticket/43 | 09:06 |
afournier | 5 years ago :p | 09:07 |
jodh | afournier: wrong channel? | 09:12 |
afournier | yes | 09:19 |
afournier | indeed | 09:19 |
* afournier needs more coffee | 09:20 | |
afournier | thanks jodh | 09:20 |
afournier | btw, 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 |
afournier | i'd like every single output to go to the syslog... | 09:40 |
afournier | exec >/dev/kmsg 2>&1 | 09:47 |
xnox | we don't have: "console log syslog" yet | 10:13 |
xnox | (e.g. log to both /var/log/upstart/myjob.log and syslog | 10:14 |
xnox | ) | 10:14 |
tom0815 | hello, 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 |
xnox | tom0815: one can do anything in the pre-start script, see cookbook. | 14:49 |
xnox | tom0815: are you after failover? in that case look up hearbeat that can handover networked services for you like that | 14:50 |
tom0815 | thank 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 server | 14:52 |
tom0815 | so it is no failover scenario | 14:52 |
xnox | tom0815: in pre-start script try to ping mysql port on the mysql host. | 14:53 |
xnox | tom0815: and stop if not available. | 14:53 |
xnox | tom0815: your job should start on when network is up | 14:54 |
xnox | tom0815: and you probably want a loop & timeout to try connecting to mysql later. | 14:54 |
xnox | and eventually give up | 14:54 |
xnox | tom0815: see cookbook for (linked in the topic) about pre-start scripts, and starting on when network is up. | 14:55 |
tom0815 | thanx alot! I will have a look to the cookbook | 15:07 |
afournier | that's funny i am working on the same thing (almost) | 15:56 |
afournier | and it's a pain :) | 15:57 |
afournier | i did something like mysqladmin --wait=10 ping | 15:59 |
afournier | and then i want to "initctl emit --no-wait database-up" | 15:59 |
=== doko__ is now known as doko | ||
afournier | is it ok to call "restart" from the post-start script in case something failed ? | 16:09 |
afournier | i know it could lead to infinite loop, but i don't know if it's possible | 16:10 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!