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

20 lines
466 B
SYSTEMD
Raw Normal View History

2021-05-18 18:17:45 +02:00
[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 \
2022-02-06 23:28:31 +01:00
--web.external-url=__PATH__/ \
--web.route-prefix=__PATH__/ \
2021-05-18 18:17:45 +02:00
--web.listen-address=localhost:__PORT__
StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit
[Install]
WantedBy=multi-user.target