nextcloud: Add systemd unit file
authorStefan Huber <shuber@sthu.org>
Thu, 11 Jun 2020 18:20:10 +0000 (20:20 +0200)
committerStefan Huber <shuber@sthu.org>
Thu, 11 Jun 2020 18:23:48 +0000 (20:23 +0200)
nextcloud/nextcloud-vimwiki-sync.service [new file with mode: 0644]

diff --git a/nextcloud/nextcloud-vimwiki-sync.service b/nextcloud/nextcloud-vimwiki-sync.service
new file mode 100644 (file)
index 0000000..8233141
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Nextcloud vimwiki synchronization service
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+ExecStart=%h/.local/bin/nextcloud-inotify-sync %h/.vimwiki "https://cloud.example.org/remote.php/webdav/vimwiki"
+Restart=always
+RestartSec=10min
+
+[Install]
+WantedBy=default.target