[05:38] <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?
[11:06] <nimo> not much action here..
[17:10] <SpamapS> nimo: its mostly busy in europe/us working hours.
[18:05] <Baribal> What signal will upsart send to stop a job? SIGTERM?
[18:10] <Baribal> YES! It IS SIGTERM, and my service is running fine now. :D
[20:44] <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:45] <Hurga> When I try to start or stop rsyslog in this situation, the start or stop just hangs and nothign happens.
[20:46] <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:47] <Hurga> Distro is Xubuntu 12.04
[21:06] <Baribal> Hurga, hanging on start might be a sign of a bad expect stanza.
[21:08] <Hurga> The message I get - rsyslog stop/killed, process 18975 - hints at upstart believing the process is still there.
[21:09] <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:11] <Hurga> well, the "process 18975" is the PID of rsyslogd before issuing the stop command which didn't return
[23:19] <Rarrikins_z> Is there a way to limit log file size for a daemon?
[23:20] <Baribal> Maybe logrotate?
[23:25] <Rarrikins_z> Thanks :)