创建ddns-go后台运行服务和开机启动

Monday, Apr 1, 2024 | 1 minute read | Updated at Monday, Apr 1, 2024

@

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

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.