Every time I shut down NAS (Synology) I have to manually start Duplicati service. Can I make it automatic start?
Hi @netkodrugi, welcome to the forum!
I don’t have a Synology box myself but the only reports I recall about it not auto-starting seem related to DSM updates.
However, they may be related to what you’re seeing - does your experience sound like what @drwtsn32 reported?
Oh - and did you do the install on your own or follow a guide (like How to install Duplicati on Synology / DSM)?
I have both issues. After a NAS reboot (which is rare for me), Duplicati just doesn’t automatically start (but no duplicati process is shown in ‘ps ax’). Maybe the root cause is the same - some flaw in the Synology package design for Duplicati?
I believe it used to start automatically on NAS reboot. Maybe a major DSM update led to both issues.
I plan on uninstalling 18.104.22.168 from my NAS and installing the next beta when it comes out to see if either issue is resolved.
I’m curious if you and @netkodrugi are using the similar versions of DSM.
I’ve added a link to this topic in the #howto post just to keep them “related” until we find a solution.
I’m running the latest… DSM 6.2.1 update 1.
It’s DSM 6.2.1-23824 Update 1. Is it possible to configure it manually?
Again, I’ve never used a Synology device before (not for lack of trying!) so am just trying to be a facilitator here but do any of these help?
- Autostart on Synology NAS boot - Home Assistant
- How do make a program run at startup - Synology Forum
- https://gist.githubusercontent.com/SanCoder-Q/f3755435e6e8bd46ba95bf0ec54ae1a4/raw/6bd51e2315b54595dcfc9e112e8a41c2904440b2/synology.startup (using bundled Upstart tool)
Once we (well, users like you) crack this I’ll be sure to update the #howto item.
I’ve added a task via Control Panel > Task Scheduler with event = “Boot up” and the user script:
/sbin/initctl start pkgctl-Duplicati.
The package center still shows “Duplicati” as not started, but the web interface is running on port 8200. If you get the dreaded “Disk space full at /tmp/…”, un-comment the first line and run them together as one line.
The task scheduled creates the file
/etc/init/pkgctl-Duplicati.conf with the details of the job.
The service didn’t start right at boot for me for whatever reason. Maybe for the same reason it doesn’t start on it’s own. I’m assuming it has something to do with starting the mono “service” first, but no idea. I changed my command to the following which worked for me:
sleep 60; /sbin/initctl start pkgctl-Duplicati
How to install Duplicati on Synology / DSM