haproxy_exporter.service 启动、停止、重启、自启动
- service文件内容
service文件内容
复制代码
1
2vi /usr/lib/systemd/system/haproxy_exporter.service
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20[Unit] Description=haproxy-exporter Documentation=https://prometheus.io/ After=network.target [Service] Type=simple User=root Group=root WorkingDirectory=/opt/haproxy_exporter # 根据实际修改WorkingDirectory ExecStart=/opt/haproxy_exporter/haproxy_exporter --web.listen-address=127.0.0.1:5674 --haproxy.scrape-uri=http://user:passwd/haproxy_stats;csv # 根据实际修改ExecStart启动目录,根据需求更改启动参数 ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s QUIT $MAINPID Restart=on-failure [Install] WantedBy=multi-user.target
最后
以上就是痴情摩托最近收集整理的关于haproxy_exporter.service 启动、停止、重启、自启动service文件内容的全部内容,更多相关haproxy_exporter.service内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复