Systemd service creation of Prometheus
2
votes
0
answers
1121
views
Oracle Linux 8
Trying to start prometheus from systemd and getting the
status=203/EXEC
error. I can copy/paste the commands from /etc/systemd/system/prometheus.service
and it will start without error. The prometheus user (no login) and group exist. This is my **prometheus.service:**
[Unit]
Description=Prometheus
Documentation=https://prometheus.io/docs/introduction/overview/
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
Environment="GOMAXPROCS=1"
User=prometheus
Group=prometheus
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/local/bin/prometheus \
--config.file=/etc/prometheus/prometheus.yml \
--storage.tsdb.path=/var/lib/prometheus \
--web.console.templates=/etc/prometheus/consoles \
--web.console.libraries=/etc/prometheus/console_libraries \
--web.listen-address=0.0.0.0:9090 \
--web.external-url=
SyslogIdentifier=prometheus
Restart=always
[Install]
WantedBy=multi-user.target
Asked by jim feldman
(31 rep)
Sep 19, 2022, 11:57 PM
Last activity: Sep 21, 2022, 04:39 PM
Last activity: Sep 21, 2022, 04:39 PM