Use Supervisor as guardian angel to monitor process running on Linux, restart it if it fails
Explanation from official website
Supervisor is a client/server system that allows its users to control a number of processes on UNIX-like operating systems.
Configuration file of Supervisor is located at
Configuration file of monitored services can be put at
The purpose of this post is to record down the configuration files made for node-exporter
1 2 3 4 5 6 7 [program:node_exporter] command=/opt/node_exporter/node_exporter autostart=true autorestart=true startretries=3 stderr_logfile=/var/log/supervisor/node_exporter.err.log stdout_logfile=/var/log/supervisor/node_exporter.out.log
Use systemctl command to start supervisord service. Once started, node_exporter service is started as well.