src.nth.io/

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