jMCg | meh. | 00:46 |
---|---|---|
jMCg | sudo stop httpd-atkobe -- hangs, because I've started the httpd through start-stop-daemon. | 00:47 |
jMCg | Actually it hangs no matter what.. | 02:02 |
jMCg | http://pastebin.com/zKTBDvGZ | 02:05 |
ion | I’m almost the forking behavior of that main process doesn’t match “expect fork”. | 02:06 |
ion | almost sure | 02:06 |
jMCg | ion: it's an apache server. | 02:08 |
ion | Better to remove the “expect” stanza and make the main process not fork if you’re not 100 % sure of how it behaves. | 02:09 |
ion | s/not fork/not daemonize/ | 02:09 |
jMCg | https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/438313 | 02:10 |
ion | rather https://bugs.launchpad.net/upstart/+bug/406397 | 02:11 |
jMCg | ion: unsure. It starts on boot, but cannot be stopped/restarted later on. | 02:14 |
ion | Yeah, that’s a symptom of using incorrect “expect”. | 02:15 |
hunterloftis | New upstart user, simple 1-line script, having trouble understanding permissions... trying (just for now) to run as root | 02:16 |
hunterloftis | But I get "-su: line 0: exec: /var/node/golf/server.js: cannot execute: Permission denied" | 02:16 |
hunterloftis | oh - maybe I need to chmod +x the thing? | 02:17 |
hunterloftis | cheers =) | 02:18 |
jMCg | ion: removed expect, now it doesn't start :-/ | 02:22 |
jMCg | http://pastebin.com/cpeUsN0a | 02:22 |
jMCg | added expect daemon, and now upstart *thinks* it starts. | 02:24 |
jMCg | httpd-atkobe start/running, process 1421 | 02:24 |
jMCg | i.galic@kobweb /etc/init % ps -cafe | grep 142[1] | 02:24 |
steffen_b2 | exec "$0" "$@"' | 02:25 |
steffen_b2 | doesnt look right actually | 02:25 |
steffen_b2 | hi | 02:25 |
steffen_b2 | :) | 02:25 |
jMCg | steffen_b2: I think scott or ion showed me that | 02:29 |
steffen_b2 | what does that do ? | 02:29 |
steffen_b2 | /opt/bw/bin/httpd-worker -f /etc/bw/apache/vhosts | 02:29 |
steffen_b2 | looks like this is what you want to execute | 02:29 |
steffen_b2 | but i shut up | 02:30 |
steffen_b2 | i dont know the problem | 02:30 |
steffen_b2 | and need to get some sleep ;) | 02:30 |
steffen_b2 | bye | 02:30 |
=== steffen_b2 is now known as steffen_b|afk | ||
* jMCg too needs to sleep ~_~ | 02:33 | |
TJ_ | what can be the reason of getting "unable to execute: Permission denied" when i try to start something with upstart that has 777 as mode ? | 10:59 |
TJ_ | ah, never mind... damn.. need more coffee | 11:02 |
jMCg | the problem with this: su -s /bin/sh -c 'exec "$0" "$@"' komunalbedarf.at -- /opt/bw/bin/httpd-worker -f /etc/bw/apache/vhosts/komunalbedarf.at/httpd.conf -k start | 14:39 |
jMCg | Is that you cannot expect fork or expect daemon in upstart... Expect fork expects one, expect daemon two, but the above should result in three or four forks... | 14:39 |
ion | Indeed | 14:40 |
ion | So make it not daemonize. | 14:40 |
jMCg | Yeah. And tell it to expect daemon or what? | 14:40 |
ion | Drop the “expect” | 14:40 |
jMCg | ACK. | 14:42 |
jMCg | Anyway. One more important.. feature, or maybe I'm not aware of that. | 14:43 |
jMCg | SMF has different modes a service can be in. | 14:43 |
jMCg | One of them is "maintenance" meaning the start or restart didn't work. | 14:44 |
jMCg | SMF also comes with a log file for each service, so when a service is in maintenance you can see why that is. | 14:44 |
jMCg | I would be enormously useful if something like /var/log/upstart/service[:instance].log was automatically created for every service. | 14:46 |
jMCg | ion: this: http://pastebin.com/QWrtZ4Ei is pretty ugly. | 14:53 |
ion | exec su … | 14:54 |
jMCg | But at least I can start/stop it now. And scott said the next release will come with the feature I most need | 14:54 |
jMCg | What I don't quite get is how upstart can follow here - since httpd has a different session ID... oh... | 14:56 |
jMCg | In this case it works because the processes hang on each other, if I kill the shell, the daemon is a goner too, because it didn't detach, so got nothing todo with the session ID. | 14:58 |
SpamapS | jMCg: such a feature is planned for the near future | 15:08 |
SpamapS | jMCg: if you want the output of the job logged, | logger works. | 15:08 |
radix | I have an /etc/init/munin-node.conf, but "start munin-node" is saying that it's an unknown job | 21:13 |
radix | I'm not sure why this happened in the first place on my system, since I just installed the munin-node package, but I'm wondering if there's a way to get upstart to tell me what all known jobs are | 21:14 |
radix | ah, I found initctl list | 21:16 |
radix | aha, and reload-configuration fixed it | 21:17 |
=== robbiew1 is now known as robbiew | ||
JanC | radix: that shouldn't happen though | 23:35 |
JanC | unless you disabled inotify in your kernels or something like that ;) | 23:36 |
marrusl | or are running in a chroot on natty, but.... yeah. | 23:50 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!