Delete the PID file when stopping the service.

This commit is contained in:
Philippe PITTOLI 2019-11-07 21:03:26 +01:00
parent 1c80a80158
commit 10cd792373

View File

@ -319,6 +319,7 @@ class Service
end
Process.waitpid _pid
File.delete(get_pid_file pid_dir)
else
# Already stopped or dead, nothing to be done here.
end