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

=== sebastian is now known as Baribal
BaribalHi. 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
nimonot much action here..11:06
SpamapSnimo: its mostly busy in europe/us working hours.17:10
BaribalWhat signal will upsart send to stop a job? SIGTERM?18:05
BaribalYES! It IS SIGTERM, and my service is running fine now. :D18:10
HurgaHello. I have a problem with a job misbehaving, and upstart getting confused about its state.20:44
HurgaThis should illustrate the problem:20:44
Hurgaroot@titan:~# initctl list | grep rsyslog20:44
Hurgarsyslog stop/killed, process 1897520:44
Hurgaroot@titan:~# ps ax | grep 1897520:44
Hurgaroot@titan:~#20:44
HurgaWhen I try to start or stop rsyslog in this situation, the start or stop just hangs and nothign happens.20:45
HurgaThis 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
HurgaDistro is Xubuntu 12.0420:47
BaribalHurga, hanging on start might be a sign of a bad expect stanza.21:06
HurgaThe message I get - rsyslog stop/killed, process 18975 - hints at upstart believing the process is still there.21:08
HurgaI 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
HurgaBut 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
Hurgawell, the "process 18975" is the PID of rsyslogd before issuing the stop command which didn't return21:11
Rarrikins_zIs there a way to limit log file size for a daemon?23:19
BaribalMaybe logrotate?23:20
Rarrikins_zThanks :)23:25

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