Aller au contenu principal

Setup server systemd unit

info

ℹ️ Utilisez cette unité systemd pour démarrer TunGo automatiquement au redémarrage.

⚙️ Prérequis

  1. TunGo est installé comme décrit dans Démarrage rapide.

🛠️ Configuration

1️⃣ Créer le fichier de service

sudo vim /etc/systemd/system/tungo.service

2️⃣ Coller cette configuration

[Unit]
Description=TunGo VPN Service
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=tungo s
User=root
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

3️⃣ Activer le service

sudo systemctl enable tungo.service

4️⃣ Démarrer le service

sudo systemctl start tungo.service

5️⃣ Vérifier son statut

sudo systemctl status tungo.service