src.nth.io/

summaryrefslogtreecommitdiff
path: root/examples/mattertimesync.service
diff options
context:
space:
mode:
Diffstat (limited to 'examples/mattertimesync.service')
-rw-r--r--examples/mattertimesync.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/mattertimesync.service b/examples/mattertimesync.service
new file mode 100644
index 0000000..8fc48c1
--- /dev/null
+++ b/examples/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=/opt/mattertimesync/mattertimesync --config /etc/mattertimesync/config.json sync
+NoNewPrivileges=true
+PrivateTmp=true
+ProtectSystem=strict
+ProtectHome=true
+ReadWritePaths=/var/lib/mattertimesync