3

I have a Raspberry Pi 2 B+ running Btsync server, which I installed a couple of years ago. I wanted to upgrade this to Resilio Sync following their instructions on this page. All's good up up until the command

sudo systemctl enable resilio-sync

Which throws the error

sudo: systemctl: command not found

I've installed all updates for the OS, Raspbian, and attempted

apt-get install systemd

Which results in

Package systemd is not available, but is referred to by another package

[...]

E: Package 'systemd' has no installation candidate

I'm lost here, I don't even know what I'm doing. Any suggestions?

1
  • Are you using jessie or wheezy? cat /etc/os-release. Edit the information into your question. – joan Apr 24 '17 at 17:27
4

It sounds like you must be using Debian Wheezy, which is not based on systemd. If possible, upgrading the OS to Debian Jessie is recommended, which is based on systemd.

2

On pre-systemd Debian/Raspian systems you should be able use these commands:

automatically start the service during boot:

update-rc.d resilio-sync defaults

manually start the service:

service start resilio-sync

manually stop the service:

service stop resilio-sync

For more details look at this cheat sheet or just duckduckgo for update-rc.d.

Most Linux system have switched to systemd. So, if you want to known how starting services works, better update and look at systemd. There is a blog series that explains systemd pretty well, I recommend you have a look at it.

2
  • Thanks, P Gerber. Could you expand on this a bit (I'm a noob); what is this actually doing? How would I then start/stop the service? – Inigo Apr 24 '17 at 21:58
  • updated the answer – Peter Gerber Apr 25 '17 at 19:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.