zedshaw/lamson — Issue #3: possible bug when starting and stopping lamson
Author: russellballestrini
Created: 2011-11-12 04:00:54+00:00
State: open

When testing lamson I was able to reproduce the following on

ubuntu 10.04 and
Lamson-Version: 1.1
Repository-Revision: c74b850cf2
Repository-Hash: c74b850cf2f78e0397ee48338de99eaad543f668

I'm able to start and stop lamson but never able to start lamson again because the 'lock' file doesn't get cleaned up...

Steps to reproduce:

fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ lamson status
Lamson not running.
fox@cammy:~/mymailserver$ ll run
total 12
drwxr-xr-x 3 fox fox 4096 2011-11-12 03:53 ./
drwxr-xr-x 7 fox fox 4096 2011-11-12 03:48 ../
drwx------ 5 fox fox 4096 2011-11-12 03:48 undeliverable/
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ lamson start
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ lamson status
Lamson running with PID 8509
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ ll run
total 16
drwxr-xr-x 3 fox fox 4096 2011-11-12 03:54 ./
drwxr-xr-x 7 fox fox 4096 2011-11-12 03:48 ../
-rw-rw-rw- 2 fox fox 0 2011-11-12 03:54 cammy.MainThread-8507
-rw-r--r-- 1 fox fox 5 2011-11-12 03:54 smtp.pid
-rw-rw-rw- 2 fox fox 0 2011-11-12 03:54 smtp.pid.lock
drwx------ 5 fox fox 4096 2011-11-12 03:48 undeliverable/
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ lamson stop
Stopping processes with the following PID files: ['./run/smtp.pid']
Attempting to stop lamson at pid 8509
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ lamson status
Lamson not running.
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ ll run
total 12
drwxr-xr-x 3 fox fox 4096 2011-11-12 03:54 ./
drwxr-xr-x 7 fox fox 4096 2011-11-12 03:48 ../
-rw-rw-rw- 2 fox fox 0 2011-11-12 03:54 cammy.MainThread-8507
-rw-rw-rw- 2 fox fox 0 2011-11-12 03:54 smtp.pid.lock
drwx------ 5 fox fox 4096 2011-11-12 03:48 undeliverable/
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ lamson start
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ lamson status
Lamson not running.
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$
fox@cammy:~/mymailserver$ ...