Skip to content

Commit

Permalink
Merge pull request #15 from func0der/autostart-at-boot
Browse files Browse the repository at this point in the history
Make mailhog service start on boot
  • Loading branch information
attachmentgenie authored Jan 12, 2023
2 parents b10189f + 1254b85 commit efa2f1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/mailhog.service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit efa2f1e

Please sign in to comment.