1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/prometheus_ynh.git synced 2024-09-03 20:16:01 +02:00
prometheus_ynh/conf/systemd.service
2021-06-23 22:40:37 +02:00

18 lines
432 B
Desktop File

[Unit]
Description=Prometheus daemon
After=network.target
[Service]
Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__FINALPATH__/
ExecStart=__FINALPATH__/prometheus \
--config.file=__FINALPATH__/prometheus.yml --web.enable-admin-api \
--web.external-url=__PATH__ \
--web.listen-address=localhost:__PORT__
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit
[Install]
WantedBy=multi-user.target