oleiade / Elevator

Elevator is an open source, on-disk key-value store. Provides high-performance bulk read-write operations over very large datasets while exposing a simple and efficient API.
http://elevator.readthedocs.org
MIT License
71 stars 12 forks source link

PID is not written in the pidfile #148

Closed nabnux closed 11 years ago

nabnux commented 11 years ago

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]
oleiade commented 11 years ago

Thanks,

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