=== sebastian is now known as Baribal | ||
Baribal | Hi. I've been trying to write a minimal system service and run it using upstart. Here's the code for the service http://bpaste.net/show/XNevoDvVVENeuVmUfeV8/ and here's the one for upstart http://bpaste.net/show/ikCR7JeGdF3feVTC2DmQ/ When I run "sudo start testjob", output tells me the PID, but using ps, I don't see a process with that PID. Running the service from shell works fine, though. Any idea where I went wrong? | 05:38 |
---|---|---|
nimo | not much action here.. | 11:06 |
SpamapS | nimo: its mostly busy in europe/us working hours. | 17:10 |
Baribal | What signal will upsart send to stop a job? SIGTERM? | 18:05 |
Baribal | YES! It IS SIGTERM, and my service is running fine now. :D | 18:10 |
Hurga | Hello. I have a problem with a job misbehaving, and upstart getting confused about its state. | 20:44 |
Hurga | This should illustrate the problem: | 20:44 |
Hurga | root@titan:~# initctl list | grep rsyslog | 20:44 |
Hurga | rsyslog stop/killed, process 18975 | 20:44 |
Hurga | root@titan:~# ps ax | grep 18975 | 20:44 |
Hurga | root@titan:~# | 20:44 |
Hurga | When I try to start or stop rsyslog in this situation, the start or stop just hangs and nothign happens. | 20:45 |
Hurga | This is not a vserver... I already fixed a similar problem with lnux-vserver. In this case, the problem appears if I try to have rsyslogd use /dev/xconsole. | 20:46 |
Hurga | Distro is Xubuntu 12.04 | 20:47 |
Baribal | Hurga, hanging on start might be a sign of a bad expect stanza. | 21:06 |
Hurga | The message I get - rsyslog stop/killed, process 18975 - hints at upstart believing the process is still there. | 21:08 |
Hurga | I can get rid of it by exhausting the PID space and creating a new process with the same PID. Which upstart can kill. | 21:09 |
Hurga | But this doesn't seem to be the right way... | 21:09 |
Baribal | ...or that that was the last runs PID? I'm actually rather new to Upstart, so here are a few grains of salt: .::. | 21:09 |
Hurga | well, the "process 18975" is the PID of rsyslogd before issuing the stop command which didn't return | 21:11 |
Rarrikins_z | Is there a way to limit log file size for a daemon? | 23:19 |
Baribal | Maybe logrotate? | 23:20 |
Rarrikins_z | Thanks :) | 23:25 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!