
创建ddns-go后台运行服务和开机启动
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
vim /lib/systemd/system/ddns-go.service
[Unit]
Description=ddns-go service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/ddns-go start
ExecStop=/usr/local/bin/ddns-go stop
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable ddns-go
systemctl start ddns-go