src.nth.io/

summaryrefslogtreecommitdiff
path: root/mattertimesync.service
diff options
context:
space:
mode:
Diffstat (limited to 'mattertimesync.service')
-rw-r--r--mattertimesync.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/mattertimesync.service b/mattertimesync.service
new file mode 100644
index 0000000..fa69907
--- /dev/null
+++ b/mattertimesync.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Matter device clock synchronization
+Wants=network-online.target
+After=network-online.target time-sync.target
+
+[Service]
+Type=oneshot
+User=mattertimesync
+Group=mattertimesync
+ExecStart=/usr/bin/node /opt/mattertimesync/mattertimesync.mjs --config /etc/mattertimesync/config.json sync
+NoNewPrivileges=true
+PrivateTmp=true
+ProtectSystem=strict
+ProtectHome=true
+ReadWritePaths=/var/lib/mattertimesync