Modified version
[platform/upstream/connman.git] / packaging / connman-ntp.service
1 [Unit]
2 Description=Connman NTP service
3 Requires=connman.service
4 After=connman.service
5
6 [Service]
7 Type=oneshot
8 ExecStart=/bin/bash -c "dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Clock.SetProperty string:'TimeUpdates' variant:string:'auto'"
9 ExecStop=/bin/bash -c "dbus-send --system --type=method_call --print-reply --dest=net.connman / net.connman.Clock.SetProperty string:'TimeUpdates' variant:string:'manual'"
10 RemainAfterExit=yes
11
12 [Install]
13 WantedBy=multi-user.target