Licoy / fetch-github-hosts

🌏 同步github的hosts工具,支持多平台的图形化和命令行,内置客户端和服务端两种模式~ | Synchronize GitHub hosts tool, support multi-platform graphical and command line, built-in client and server modes
https://hosts.gitcdn.top
GNU General Public License v3.0
1.15k stars 123 forks source link

建议加入静默启动的选项 #17

Closed sliots closed 4 months ago

sliots commented 7 months ago

目前将软件添加到了启动项,希望能静默启动

wangxm345566462 commented 1 week 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