mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #214] How to run mailpit in backgroud ? #144
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#144
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 @imrostom on GitHub (Dec 1, 2023).
Original GitHub issue: https://github.com/axllent/mailpit/issues/214
I installed Mailpit on my Ubuntu 20.04 LTS DigitalOcean droplet using a Bash script. Following the installation, I executed the application with "./mailpit", and it functioned correctly. However, I observed that when I closed the terminal, the application stopped working.
@axllent commented on GitHub (Dec 1, 2023):
Hi @imrostom. I'm afraid you will need to be much more specific for me to try give you an answer to this. What operating system are you using, and how did you "install" Mailpit?
@jure965 commented on GitHub (Dec 1, 2023):
@imrostom please detail your use case. If you want to run in the background temporarily, you can use tmux or screen. For more permanent solution with start-at-boot capabilities, you can set up a systemd service around Mailpit.
@axllent commented on GitHub (Dec 5, 2023):
@imrostom Sorry, I did not realise you had edited your original comment as that does not send a notification / alert. It sounds to me like you should simply set up a systemd service to start Mailpit. Here is a link (one of many) that explains how to do it. Obviously you will need to modify the service script to suit your Mailpit startup options, and, assuming you are not intending to run it as root, you will have to add those options to the service script too. There are plenty articles on the internet of how to achieve what you are after though, Google will help.
@imrostom commented on GitHub (Dec 5, 2023):
Sorry for the late reply, I solved my issue using nohup command. Thank you @axllent for your instant support.
@axllent commented on GitHub (Dec 8, 2023):
Just for future reference to others, I have added some documention for auto-starting a native installation (non-docker) of Mailpit on Linux.