From f6d063f97f5b1032af080e85fab04e45e71b54cf Mon Sep 17 00:00:00 2001 From: webbuilder_pel7ppc64bebuilder0 Date: Wed, 6 Mar 2019 14:23:55 +0100 Subject: [PATCH] mattermost add missing source files Signed-off-by: webbuilder_pel7ppc64bebuilder0 --- SOURCES/mattermost.logrotate | 10 ++++++++++ SOURCES/mattermost.service | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 SOURCES/mattermost.logrotate create mode 100644 SOURCES/mattermost.service diff --git a/SOURCES/mattermost.logrotate b/SOURCES/mattermost.logrotate new file mode 100644 index 0000000..73e7f3b --- /dev/null +++ b/SOURCES/mattermost.logrotate @@ -0,0 +1,10 @@ +# mattermos logs: +/var/log/mattermost/*.log { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + copytruncate +} diff --git a/SOURCES/mattermost.service b/SOURCES/mattermost.service new file mode 100644 index 0000000..f66414e --- /dev/null +++ b/SOURCES/mattermost.service @@ -0,0 +1,13 @@ +[Unit] +Description=Mattermost +After=syslog.target network.target postgresql.service mysql.service mariadb.service + +[Service] +Type=simple +WorkingDirectory=/var/lib/mattermost +User=mattermost +ExecStart=/usr/bin/mattermost -c /etc/mattermost/config.js +PIDFile=/var/run/mattermost/master.pid + +[Install] +WantedBy=multi-user.target