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?

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

2 Answers2

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.

Mark Stosberg
  • 308
  • 1
  • 7
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.

Peter Gerber
  • 131
  • 3