lemur.service

This commit is contained in:
Emmanuel Garette 2020-10-20 22:29:45 +02:00
parent f68a1759d6
commit ebf864c585
3 changed files with 16 additions and 1 deletions

12
lemur.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Lemur
After=postgresql.service
[Service]
ExecStart=/usr/bin/lemur start -b 127.0.0.1:8002 -c /etc/lemur/lemur.conf.py
User=lemur
Group=lemur
[Install]
WantedBy=multi-user.target

View File

@ -11,4 +11,7 @@ lemur --config=/etc/lemur/lemur.conf.py init --password $(CreoleGet lemur_admin_
systemctl stop postgresql.service systemctl stop postgresql.service
rm -f *.log rm -f *.log
mkdir -p /var/log/lemur/
chown lemur: /var/log/lemur/
exit 0 exit 0

View File

@ -44,7 +44,7 @@ METRIC_PROVIDERS = []
# Logging # Logging
LOG_LEVEL = "DEBUG" LOG_LEVEL = "DEBUG"
LOG_FILE = "lemur.log" LOG_FILE = "/var/log/lemur/lemur.log"
# Database # Database