Seadrive as sytemctl-service timeout

Hi everyone,

I am trying to run Seadrive as a service on an Ubuntu 20.04 server.
So far I have gotten it to work, but I have a timeout problem every time after 90 seconds. Since it is a service, it restarts automatically as expected. The problem here is that each folder is resynchronized, which causes further problems in my use case.

seadrive.service config:

    Description=seaDrive Client service

    ExecStart=/usr/bin/seadrive -c /mnt/seadrive/seadrive.conf -f -d /mnt/seadrive/data -l /mnt/seadrive/logs/seadrive.log /mnt/seadrive/libs



systemd[1]: seadrive.service: start operation timed out. Terminating.

systemctl status after 90 secs:

Loaded: loaded (/etc/systemd/system/seadrive.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: timeout) since Fri 2022-12-16 12:49:26 UTC; 6s ago
    Process: 5628 ExecStart=/usr/bin/seadrive -c /mnt/seadrive/seadrive.conf -f -d /mnt/seadrive/data -l /mnt/seadrive/logs/seadrive.log /mnt/seadrive/libs (code=exited, status=0/SUCCESS)

Does anyone have any idea why the service stopped working, or better yet, how to fix this problem?

This might be caused by Type=forking. You are starting the client in foreground (-f option) but tell systemd that the service forks a child process and exits the parent process. Try Type=simple or Type=exec instead.