You are not logged in.

#1 2014-01-08 21:54:42

Kriri
Member
Registered: 2014-01-08
Posts: 2

Btsync not starting correctly at boot

Hi all,
I have installed Btsync with the help of this nice guide:
https://wiki.archlinux.org/index.php/BitTorrent_Sync
Running this on the RaspberryPi.

And it starts when I boot but it does not show any logs (systemctl status btsync@username)  and the GUI does not work until I do a

systemctl restart btsync@username


What shall I do?

Regards
Kristofer

Offline

#2 2014-01-08 22:08:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Btsync not starting correctly at boot

Post the service file you are using.


Moving to other Architectures...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-01-09 11:03:05

Kriri
Member
Registered: 2014-01-08
Posts: 2

Re: Btsync not starting correctly at boot

Service file:   btsync@.service

[Unit]
Description=Bittorent Sync service for %i
After=network.target

[Service]
User=%i
ExecStart=/usr/bin/btsync --config %h/.config/btsync/btsync.conf --nodaemon
Restart=on-abort

[Install]
WantedBy=multi-user.target

After a reboot when the btsync does not work:

systemctl status btsync@xx

btsync@xx.service - Bittorent Sync service for xx
   Loaded: loaded (/usr/lib/systemd/system/btsync@.service; enabled)
   Active: active (running) since Thu 1970-01-01 01:00:23 CET; 44 years 0 months ago
 Main PID: 143 (btsync)
   CGroup: /system.slice/system-btsync.slice/btsync@xx.service
           `-143 /usr/bin/btsync --config /home/xx/.config/btsync/btsync.c...

Offline

#4 2014-01-09 17:55:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Btsync not starting correctly at boot

My service file is slightly different:

[Unit]
Description=BitTorrent Sync service for %i
After=network.target

[Service]
Type=forking
User=%i
ExecStart=/usr/local/bin/btsync --config %h/.config/Syncapp/sync.conf
Restart=on-abort
PIDFile=%h/.config/Syncapp/.sync.pid

[Install]
WantedBy=multi-user.target

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB