From 0a3650b377bc7cd6dc5852866af94e912a280dd3 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 11 Jun 2020 20:20:10 +0200 Subject: [PATCH] nextcloud: Add systemd unit file --- nextcloud/nextcloud-vimwiki-sync.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nextcloud/nextcloud-vimwiki-sync.service diff --git a/nextcloud/nextcloud-vimwiki-sync.service b/nextcloud/nextcloud-vimwiki-sync.service new file mode 100644 index 0000000..8233141 --- /dev/null +++ b/nextcloud/nextcloud-vimwiki-sync.service @@ -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 -- 2.39.5