ExecStart systemd start a foreground shell, timeout failure
ExecStart=/opt/prometheus-2.53.0.linux-amd64/prometheus –config.file=/opt/prometheus-2.53.0.linux-amd64/prometheus.yml failure. timeout. because prometheus keeps in foreground. ExecStart=/opt/prometheus-2.53.0.linux-amd64/prometheus –config.file=/opt/prometheus-2.53.0.linux-amd64/prometheus.yml& failure. because prometheus[3280250]: Error parsing command line arguments: unexpected & scripting customization systemd foreground systemctl [Service] ExecStart=bash -c “nohup /opt/prometheus-2.53.0.linux-amd64/prometheus –config.file=/opt/prometheus-2.53.0.linux-amd64/prometheus.yml”& Type=forking this works systemctl status prometheus –no-page ● prometheus.service – prometheus service Loaded: loaded (/etc/systemd/system/prometheus.service; enabled; vendor preset: enabled) Active: active (running) since […]