From 7cc2f8842b028915e097ece87e5698ebb20cd274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 29 Jun 2022 00:26:50 +0200 Subject: [PATCH] Update systemd.service --- conf/systemd.service | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 1b2b352..dea8937 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,19 +1,18 @@ [Unit] Description=Mattermost -After=network.target -After=postgresql.service +After=network.target postgresql.service Requires=postgresql.service [Service] Type=notify +User=__APP__ +Group=__APP__ ExecStart=__FINALPATH__/bin/mattermost TimeoutStartSec=3600 Restart=always RestartSec=10 WorkingDirectory=__FINALPATH__ RuntimeDirectory=__APP__ -User=__APP__ -Group=__APP__ LimitNOFILE=49152 # Sandboxing options to harden security