lemur.service
This commit is contained in:
parent
f68a1759d6
commit
ebf864c585
12
lemur.service
Normal file
12
lemur.service
Normal 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
|
||||||
|
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user