-
StackOverflow 文档
-
Bosun 教程
-
包和初始化脚本
-
Scollector systemd 单元文件
#Create Scollector unit file at /etc/systemd/system/scollector.service
[Unit]
Description=Scollector Service
After=network.target
[Service]
Type=simple
User=root
ExecStart=/opt/scollector/scollector -h mybosunserver.example.com
Restart=on-abort
[Install]
WantedBy=multi-user.target
#enable and start service
#systemctl enable scollector
#systemctl start scollector
#If you edit this file, be sure to run `systemctl daemon reload` so Systemd recognizes the changes made