From 1254b857c69e3735f071a67c8c4dd213ef9f8034 Mon Sep 17 00:00:00 2001 From: func0der <529819+func0der@users.noreply.github.com> Date: Thu, 12 Jan 2023 12:49:10 +0100 Subject: [PATCH] Make mailhog service start on boot --- templates/mailhog.service.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/mailhog.service.erb b/templates/mailhog.service.erb index a85584c..73b6507 100644 --- a/templates/mailhog.service.erb +++ b/templates/mailhog.service.erb @@ -7,3 +7,6 @@ Type=simple EnvironmentFile=<%= scope['mailhog::config_file'] %> ExecStart=<%= scope['mailhog::install_dir'] %>/mailhog $MAILHOG_OPTS > /dev/null 2>&1 ExecStop=<%= scope['mailhog::install_dir'] %>/mailhog > /dev/null 2>&1 + +[Install] +WantedBy=multi-user.target