AdGuard per Linux non si avvia automaticamente all'avvio del sistema. Come posso abilitare l'avvio automatico?
Nelle distribuzioni che utilizzano systemd, è necessario abilitare il servizio manualmente. Per farlo, crea il file di servizio
/etc/systemd/system/adguard-cli.service e aggiungi la seguente configurazione:[Unit]
Description=AdGuard CLI
After=network.target
[Service]
Type=forking
WorkingDirectory=/opt/adguard-cli
ExecStart=/opt/adguard-cli/adguard-cli start
ExecStop=/opt/adguard-cli/adguard-cli stop
Restart=always
TimeoutStartSec=0
TimeoutStopSec=0
StandardOutput=journal
RemainAfterExit=yes
User=username
[Install]
WantedBy=multi-user.target
In the User=username parameter, replace username with your Linux username.
- Run the following commands to enable the service:
systemctl daemon-reload systemctl enable --now adguard-cli
Siamo felici di poter aiutare!
Se hai ulteriori domande o suggerimenti, per favore inviaci un'e-mail a support@adguard.com
Si prega di contattare l'assistenza
Il tuo problema non è stato risolto, o hai trovato un'imprecisione? Per favore mandaci un'e-mail a support@adguard.com — ti risponderemo il più presto possibile


