Closed sliots closed 6 months ago
sudo nano /etc/systemd/system/fetch-github-hosts.service
[Unit]
Description=Fetch GitHub Hosts Service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/fetch-github-hosts -m=client
Restart=on-failure
User=root
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable fetch-github-hosts.service
sudo systemctl start fetch-github-hosts.service
sudo systemctl status fetch-github-hosts.service
目前将软件添加到了启动项,希望能静默启动