Delete the PID file when stopping the service.

master
Philippe PITTOLI 2019-11-07 21:03:26 +01:00
parent 1c80a80158
commit 10cd792373
1 changed files with 1 additions and 0 deletions

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