add systemd service file

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2022-10-07 19:09:57 -05:00
parent cd86795c10
commit 8c9236ec3d
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
[Unit]
Description=Mattermost
After=network.target
After=postgresql.service
BindsTo=postgresql.service
[Service]
Type=notify
ExecStart=/opt/mattermost/bin/mattermost
TimeoutStartSec=3600
KillMode=mixed
Restart=always
RestartSec=10
WorkingDirectory=/opt/mattermost
User=mattermost
Group=mattermost
LimitNOFILE=49152
[Install]
WantedBy=multi-user.target

2
.gitignore vendored
View File

@ -3,4 +3,4 @@
.debian/data.tar.xz
.debian/DEBIAN/md5sums
.debian/files/opt/
mattermost*
mattermost*tar.gz