culebrón Posted October 16, 2021 Report Share Posted October 16, 2021 I run Resilio in Ubuntu 21.10, that I installed yesterday. Resilio is installed from the official repository. I used this configuration for months, but now Resilio stopped runinng. It starts normally for a few seconds, then exits. (I did `systemctl enable resilio...` before this) sudo systemctl restart resilio-sync.service sudo systemctl status resilio-sync.service Initially it shows status as running, but after 3 seconds I see this: окт 16 23:40:19 asus systemd[1]: Started resilio-sync.service. окт 16 23:40:22 asus systemd[1]: resilio-sync.service: Deactivated successfully. All the advice you can find on the Internet is about tweaking Resilio through its web UI on Windows. I'd appreciate any suggestion, or if someone points me where to get the default configurations. Here are the settings: /etc/systemd/system/resilio-sync.service. I changed user and group to myself to have files both synced and writeable, because otherwise I could not change files after Resilio changed their ownership. (Adding myself to resilio group, or vice versa resilio to `culebron` group, did not help.) [Service] User=culebron Group=culebron PIDFile=/home/culebron/.config/resilio-sync/sync.pid ExecStartPre= ExecStart= ExecStart=/usr/bin/rslsync --config /home/culebron/.config/resilio-sync/config.json This settings file is picked up, because in those seconds when resilio runs, I see `sync.pid` appear in that folder. ~/.config/resilio-sync/user-config.json: { "storage_path" : "/home/culebron/.config/resilio-sync/storage", "pid_file" : "/home/culebron/.config/resilio-sync/sync.pid", "webui" : { "listen" : "127.0.0.1:9999" } } Quote Link to comment Share on other sites More sharing options...
culebrón Posted October 16, 2021 Author Report Share Posted October 16, 2021 Found the solution on Stackoverflow. Added a line to `/etc/systemd/system/resilio-sync.service`: https://unix.stackexchange.com/questions/200280/systemd-kills-service-immediately-after-start Type=forking And it works normally. Quote Link to comment Share on other sites More sharing options...
culebrón Posted October 16, 2021 Author Report Share Posted October 16, 2021 Here's the full .service file to systemctl-enable it: # cp this file to /etc/systedm/system/resilio-sync.service # then: # $ sudo systemctl daemon-reload # $ sudo systemctl restart resilio-sync.service # $ sudo systemctl enable resilio-sync.service [Unit] Description=Resilion Sync service Documentation=http://help.getsync.com/ After=network.target network-online.target [Service] User=<your_user> Group=<your_user> Restart=on-failure PIDFile=/home/<your_user>/.config/resilio-sync/sync.pid ExecStartPre= ExecStart= ExecStart=/usr/bin/rslsync --config /home/<your_user>/.config/resilio-sync/config.json Type=forking [Install] WantedBy=multi-user.target Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.