Systemd file to restart Insync automatically [workaround]

After I posted this I did start having one or two issues with this so ended up changing it as below. This has ran for 2+ weeks without any problems now.

[Unit]
Description=Insync Keep Alive
After=network-online.target graphical-session-pre.target
Wants=network-online.target graphical-session-pre.target
PartOf=graphical-session.target

[Service]
Type=simple
ExecStart=/usr/bin/insync start --no-daemon
ExecStop=/usr/bin/insync quit
Restart=on-failure
RestartSec=10

[Install]
WantedBy=graphical-session.target
1 Like