You are not logged in.

#1 2013-11-28 22:45:28

0x000000
Member
Registered: 2011-11-23
Posts: 57

Restart btsync (or any other daemon) on resume?

I feel like this isn't a problem normally with other services, but with btsync (http://www.bittorrent.com/sync), the network connection never recovers when I resume from suspend. I don't know if it's btsync itself, but I doubt it because I know that it recovers normally on a friend's Ubuntu system. Anyway, could this be solved with a systemd tweak? I don't have a problem with forcibly restarting the service, if that's what needs to be done. Here's my service file:

[Unit]
Description=btsync
After=network.target

[Service]
User=andrew
Group=users
ExecStart=/home/andrew/bin/btsync-run start
PIDFile=/home/andrew/.config/btsync/btsync.pid

[Install]
WantedBy=multi-user.target

Same thing happens if I leave Spotify open before suspending, gotta restart.

Offline

#2 2013-11-29 00:28:27

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: Restart btsync (or any other daemon) on resume?

Do the network details change after resume (ie, laptop moving between networks)? FWIW, btsync has a known issue where it can't handle that because it only fetches network information once at startup, so it will need a restart. If the network details don't change, it works fine after suspend for me on my home desktop.

I don't have an answer for how to automatically restart it though, sorry.

Offline

#3 2013-11-29 00:40:08

0x000000
Member
Registered: 2011-11-23
Posts: 57

Re: Restart btsync (or any other daemon) on resume?

Not surprised that it's a known issue. Oh well. I just hate doing resume hooks for user-level services. Thanks anyway.

Offline

Board footer

Powered by FluxBB