info:bootautostartsyncthing

Démarrer Syncthing automatiquement au boot

instructions pour distributions debian-based

[Unit]
Description=Syncthing - Open Source Continuous File Synchronization
After=network.target
 
[Service]
Type=simple
ExecStart=/usr/bin/syncthing --no-browser --home=/home/votre_utilisateur/.config/syncthing
Restart=on-failure
RestartSec=5s
Environment=HOME=/home/votre_utilisateur
Environment=XDG_CONFIG_HOME=/home/votre_utilisateur/.config
 
[Install]
WantedBy=default.target

Note : Remplacez /home/votre_utilisateur par votre nom d'utilisateur réel et assurez-vous que le chemin vers syncthing est correct (souvent /usr/bin/syncthing).

mkdir -p ~/.config/systemd/user/
cp syncthing.service ~/.config/systemd/user/

(Si vous avez copié le fichier manuellement via un éditeur de texte, placez-le directement dans ~/.config/systemd/user/syncthing.service).

systemctl --user daemon-reload
systemctl --user enable syncthing.service
systemctl --user start syncthing.service
systemctl --user status syncthing.service

Pour tester le démarrage automatique, redémarrez votre ordinateur.

Syncthing devrait se lancer automatiquement dès votre connexion.

  • info/bootautostartsyncthing.txt
  • Dernière modification : 2026/08/28 04:16
  • de radeff