I have a Debian 9 stretch install which I am setting up to use as a music server but also as a backup machine for my dropbox and goodgle drive accounts. I have managed to install dropbox and get it started using systemd as a background process on boot up.
I have installed insync without a problem and sync’d to my google drive. I used the autostart command which comes with insync headless which works well BUT when this is enabled, it interferes with unmounting my /home partition and unmounting fails at shutdown. I have localised it to the insync-headless service as when I quit this prior to shutting down there is no unmounting error.
Needless to say I don’t want my /home partition to become corrupted over time with unmounting being an issue.
My thought was to use systemd to start/stop the insync-headless service so it was definitely stopped prior to unmounting at shutdown. I have tried to setup a systemd .service file in /etc/systemd/system/ with various files posted around the internet and enable with systemctl but I keep getting an invalid argument error.
I don’t have enough experience with systemd at present to know how to sort this out, or why insync-headless won’t let me unmount my /home partition. I will keep reading about systemd service files but any help would be greatly appreciated.