PID directory created as needed.

master
Luka Vandervelden 2019-10-19 18:43:40 +02:00
parent 365e780055
commit 6237a9bb10
1 changed files with 1 additions and 0 deletions

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