oleiade/Elevator

PID is not written in the pidfile

Closed this issue · 1 comments

When starting Elevator the PID of the process should be written in the file specified as 'pidfile' in elevator.conf, but it's not:

# /etc/init.d/elevator-server start
Starting elevator: elevator.

# cat /var/run/elevator.pid 
#

As a consequence, service stop doesn't work as expected:

# service elevator-server stop
Stopping elevator
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

Thanks,

I can reproduce the bug using # elevator -c config/elevator.conf -d
Investigating.