Function get_service_log_dir_path

Source
pub fn get_service_log_dir_path(
    bin_type: ReleaseType,
    custom_path: Option<PathBuf>,
    owner: Option<String>,
) -> Result<PathBuf>
Expand description

Get the logging directory for the service.

It’s a little counter-intuitive, but the owner will be None in the case of a user-mode service, because it will always run as the current user. The owner is really to specify the non-root user for running a system-wide service.