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
2022-02-06 23:28:31 +01:00

19 lines
466 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.route-prefix=__PATH__/ \
--web.listen-address=localhost:__PORT__
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit
[Install]
WantedBy=multi-user.target