summaryrefslogtreecommitdiff
path: root/packaging/connman-ntp.service
blob: 1978f7431031f7125393c7acd2efe265cdecf32b (plain)
1
2
3
4
5
6
7
8
9
10
11
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