diff options
Diffstat (limited to 'mattertimesync/server/templates/mattertimesync.service.j2')
| -rw-r--r-- | mattertimesync/server/templates/mattertimesync.service.j2 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mattertimesync/server/templates/mattertimesync.service.j2 b/mattertimesync/server/templates/mattertimesync.service.j2 new file mode 100644 index 0000000..e47cc35 --- /dev/null +++ b/mattertimesync/server/templates/mattertimesync.service.j2 @@ -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_user}} +Group={{mattertimesync_user}} +ExecStart=/usr/bin/node {{mattertimesync_install_dir}}/mattertimesync.mjs --config {{mattertimesync_config_dir}}/config.json sync +NoNewPrivileges=true +PrivateTmp=true +ProtectSystem=strict +ProtectHome=true +ReadWritePaths={{mattertimesync_storage_path}} |
