How start a plugin as a service within Mattermost
-
Ah, I see, looks like mail2man is not a plugin, it is some sort of service that is run in the background?
A 'hack' is to have a cron task run every 5 minutes or so to start the service - https://docs.cloudron.io/apps/#cron . Add a script like https://www.akamaras.com/linux/linux-script-to-check-if-a-service-is-running-and-start-it-if-its-stopped/
-
Ah, I see, looks like mail2man is not a plugin, it is some sort of service that is run in the background?
A 'hack' is to have a cron task run every 5 minutes or so to start the service - https://docs.cloudron.io/apps/#cron . Add a script like https://www.akamaras.com/linux/linux-script-to-check-if-a-service-is-running-and-start-it-if-its-stopped/
-
@girish that works well, but I have implemented it differently.
Every five minutes runs the programm and send to Mattermost my mails from different inboxes.
Thanks for help!
-
@roru2k20 Would you mind posting your script so others can find it later? A bit of a how-to as this thread suggests

@robi oh yeah of course, but it is very easy and and I could have actually thought of it myself.

#!/bin/bash cd /app/data/plugins/mail2most ./mail2most -c ./mail2most.confThis script runs with cron every five minutes to check my mails and send them to the different channels. I have 5 addresses configured and it works fine.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login