add systemd service file
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
cd86795c10
commit
8c9236ec3d
|
@ -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
|
|
@ -3,4 +3,4 @@
|
||||||
.debian/data.tar.xz
|
.debian/data.tar.xz
|
||||||
.debian/DEBIAN/md5sums
|
.debian/DEBIAN/md5sums
|
||||||
.debian/files/opt/
|
.debian/files/opt/
|
||||||
mattermost*
|
mattermost*tar.gz
|
||||||
|
|
Loading…
Reference in New Issue