From 3a535a57c1b5fa48d5495c31d308b42943f92583 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Tue, 28 Jul 2026 20:13:03 -0500 Subject: Rename project to mattertimectl; default fabric label to Matter Time Controller - Rename crate, binary, and repo from mattertimesync to mattertimectl - Change default fabricLabel to "Matter Time Controller" - Point README at src.nth.io as the main repo, GitHub as the mirror --- examples/config.example.json | 4 ++-- examples/mattertimectl.service | 15 +++++++++++++++ examples/mattertimectl.timer | 10 ++++++++++ examples/mattertimesync.service | 15 --------------- examples/mattertimesync.timer | 10 ---------- 5 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 examples/mattertimectl.service create mode 100644 examples/mattertimectl.timer delete mode 100644 examples/mattertimesync.service delete mode 100644 examples/mattertimesync.timer (limited to 'examples') diff --git a/examples/config.example.json b/examples/config.example.json index 831630c..5409179 100644 --- a/examples/config.example.json +++ b/examples/config.example.json @@ -1,6 +1,6 @@ { - "storagePath": "/var/lib/mattertimesync", + "storagePath": "/var/lib/mattertimectl", "timezone": "America/Chicago", "logLevel": "info", - "fabricLabel": "Rust Matter Time Sync" + "fabricLabel": "Rust Matter Time Controller" } 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 diff --git a/examples/mattertimectl.timer b/examples/mattertimectl.timer new file mode 100644 index 0000000..4d7b64a --- /dev/null +++ b/examples/mattertimectl.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Periodic Matter device clock synchronization + +[Timer] +OnBootSec=2min +OnUnitActiveSec=1h +RandomizedDelaySec=5min + +[Install] +WantedBy=timers.target diff --git a/examples/mattertimesync.service b/examples/mattertimesync.service deleted file mode 100644 index 8fc48c1..0000000 --- a/examples/mattertimesync.service +++ /dev/null @@ -1,15 +0,0 @@ -[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 diff --git a/examples/mattertimesync.timer b/examples/mattertimesync.timer deleted file mode 100644 index 4d7b64a..0000000 --- a/examples/mattertimesync.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Periodic Matter device clock synchronization - -[Timer] -OnBootSec=2min -OnUnitActiveSec=1h -RandomizedDelaySec=5min - -[Install] -WantedBy=timers.target -- cgit v1.2.3