[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Avviare programma in automatico all'avvio su server Debian



Il giorno dom 20 ott 2019 alle ore 22:04 Paolo Redaelli <paolo.redaelli@gmail.com> ha scritto:

Direi che systemctl enable syncthing dato una volta e per sempre sarebbe meglio.


Grazie per i suggerimenti.
Ho lanciato systemctl enable syncthing da root ricevendo l'errore "Failed to enable unit: Unit file syncthing.service does not exist".
Allora sono andato a vedere le istruzioni specifiche di syncthing:
https://docs.syncthing.net/users/autostart.html#how-to-set-up-a-user-service
e ho scaricato
https://github.com/syncthing/syncthing/blob/master/etc/linux-systemd/system/syncthing-resume.service
spostandolo poi in /etc/systemd/system
a questo punto i comandi
systemctl enable syncthing@myuser.service
systemctl start syncthing@myuser.service
hanno funzionato

--
Lucio Marinelli


Reply to: