PID directory created as needed.

This commit is contained in:
Luka Vandervelden 2019-10-19 18:43:40 +02:00
parent 365e780055
commit 6237a9bb10

View File

@ -235,6 +235,7 @@ class Service
end
def save_pid(pid_dir, new_pid)
FileUtils.mkdir_p pid_dir
File.write get_pid_file(pid_dir), new_pid
end