From a64a3291ceba019ab8cbe4fba2aad1d35aef457d Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Fri, 28 Jun 2024 16:04:29 +0200 Subject: [PATCH] New "service_name" attribute in the configuration file. --- src/service.cr | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/service.cr b/src/service.cr index 22e3c90..ea93a26 100644 --- a/src/service.cr +++ b/src/service.cr @@ -5,13 +5,14 @@ extend AuthD class Baguette::Configuration class Auth < IPC + property service_name : String = "auth" property recreate_indexes : Bool = false property storage : String = "storage" property registrations : Bool = false property require_email : Bool = false property activation_template : String = "email-activation" property recovery_template : String = "email-recovery" - property mailer_exe : String = "mailer" + property mailer_exe : String = "/usr/local/bin/mailer" property read_only_profile_keys : Array(String) = Array(String).new property print_password_recovery_parameters : Bool = false @@ -57,7 +58,7 @@ class AuthD::Service < IPC end self.timer @configuration.ipc_timer - self.service_init "auth" + self.service_init @configuration.service_name end def obsolete_hash_password(password : String) : String @@ -173,7 +174,7 @@ class AuthD::Service < IPC end def run - Baguette::Log.title "Starting authd" + Baguette::Log.title "Starting #{@configuration.service_name}" Baguette::Log.info "(mailer) Email activation template: #{@configuration.activation_template}" Baguette::Log.info "(mailer) Email recovery template: #{@configuration.recovery_template}"