diff options
Diffstat (limited to 'packaging/connman-ntp.service')
-rw-r--r-- | packaging/connman-ntp.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/connman-ntp.service b/packaging/connman-ntp.service new file mode 100644 index 00000000..1978f743 --- /dev/null +++ b/packaging/connman-ntp.service @@ -0,0 +1,12 @@ +[Unit] +Description=Connman NTP service +After=syslog.target + +[Service] +Type=oneshot +ExecStart=/bin/bash -c "dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Clock.SetProperty string:'TimeUpdates' variant:string:'auto'" +ExecStop=/bin/bash -c "dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Clock.SetProperty string:'TimeUpdates' variant:string:'manual'" +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target |