mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 16:56:00 +03:00
[GH-ISSUE #94] Enable as a service on linux #65
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#65
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ameerElsherif on GitHub (Apr 19, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/94
How can I use mailpit as a service, so it can be enabled and automatically run with system start?
I am used to having this with Mailhog so, it is always running in the background.
So, I am not very comfortable having to run the command in a terminal every time I need to use mailpit.
@axllent commented on GitHub (Apr 19, 2023):
Hi. Can you please explain to me how you installed and are running MailHog on your system automatically? Did you follow some documentation to get this working, and if so, where did you see that documentation? Lastly, what system are you referring to, Windows, Linux or Mac?
@ameerElsherif commented on GitHub (Apr 19, 2023):
Arch Linux
I installed Mailhog through AUR
Check: https://aur.archlinux.org/packages/mailhog-bin
@axllent commented on GitHub (Apr 19, 2023):
That appears to be specifically an Arch Linux package created for MailHog, and would include additional startup scripts designed for Arch. You will need to ask a maintainer (of Arch Linux packages) if they would be willing to include Mailpit in their packages. I do not know where you would ask that as I don't use Arch, but that site looks like a good starting point.
@ameerElsherif commented on GitHub (Apr 20, 2023):
For anyone interested in this, I ended up accomplishing it by creating a file with the following content:
After creating the service file, run the following commands:
sudo systemctl start mailpitorsudo service mailpit startsudo systemctl enable mailpitorsudo service mailpit enableDone!