[systemd] start btsync binary on boot

Applications, problèmes de configuration réseau
StarSnapa
newbie
Messages : 2
Inscription : dim. 28 juil. 2013, 12:27

[systemd] start btsync binary on boot

Message par StarSnapa »

Bonjour à tous ! :)

Ayant récemment fait l'acquisition d'une rasberry pi et configurer cette dernière avec OwnCloud et btsync, j'aurais aimer lancer au démarrage un fichier binaire de btsync pour synchroniser mes fichiers.

J'ai télécharger ici le fichier binaire :
http://labs.bittorrent.com/experiments/sync.html

J'ai donc voulu en faire un service pour systemd et le lancer au démarrage.

Voici mon fichier dans :

Code : Tout sélectionner

cat /etc/systemd/system/btsync.service

Code : Tout sélectionner

[Unit]
Description=btsync

[Service]
ExecStart=./home/myusr/Binary/btsync_x64/btsync

[Install]
WantedBy=multi-user.target 
Par la suite j'ai saissit :

Code : Tout sélectionner

systemctl enable btsync
Mais comme ça ne fonctionnais pas, voilà ce que le journal me dit :

Code : Tout sélectionner

[root@localhost myusr]# systemctl start btsync.service
Failed to issue method call: Unit btsync.service failed to load: Invalid argument. See system logs and 'systemctl status btsync.service' for details.
[root@localhost myusr]# systemctl status btsync.service
btsync.service - btsync
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead)

Jul 28 12:20:28 localhost systemd[1]: [/etc/systemd/system/btsync.service:5] Executable pa...ync
Jul 28 12:20:28 localhost systemd[1]: btsync.service lacks ExecStart setting. Refusing.
Des idées de comment je pourrais le faire fonctionner ?
D'avance merci :)
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17632
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [systemd] start btsync binary on boot

Message par benjarobin »

Supprime le point après ExecStart
Le chemin doit être absolu (commence forcément par un /)
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
StarSnapa
newbie
Messages : 2
Inscription : dim. 28 juil. 2013, 12:27

Re: [systemd] start btsync binary on boot

Message par StarSnapa »

ok merci :)
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17632
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [systemd] start btsync binary on boot

Message par benjarobin »

:resolu: ?
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Répondre