create_pid_directory pid_directory uid gid = do
it_exists <- doesDirectoryExist pid_directory
unless it_exists $ do
- report_info $ "Creating PID directory " ++ pid_directory
+ report_info $ "Creating PID directory " ++ pid_directory ++ "."
createDirectory pid_directory
report_info $ "Changing owner/group of " ++ pid_directory ++
- " to " ++ (show uid) ++ "/" ++ (show gid)
+ " to " ++ (show uid) ++ "/" ++ (show gid) ++ "."
setOwnerAndGroup pid_directory uid gid
-- | Write a PID file, install a SIGTERM handler, drop privileges, and