Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit c95c437

Browse files
committed
fixed bug where timesync wouldn't happen
1 parent 29f87f7 commit c95c437

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ RadioTracking/boot/mosquitto.d/*.crt
66

77
docs/.sass-cache
88
docs/_site
9+
boot/wireguard.conf

boot/radiotracking.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ config = '/boot/radiotracking.ini'
66
schedule = []
77

88
[rtl-sdr]
9-
device = ['0', '1', '2', '3']
10-
calibration = [0.0, 0.0, 0.0, 0.0]
9+
device = ['0']
10+
calibration = [0.0]
1111
center_freq = 150150000
1212
sample_rate = 300000
1313
sdr_callback_length = None
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Unit]
2+
Description=Wait until chrony timesync and notify systemd.
3+
After=chrony.service
4+
5+
[Service]
6+
ExecStart=/bin/bash -c 'chronyc waitsync && (mkdir -p /run/systemd/timesync/; touch /run/systemd/timesync/synchronized)'
7+
Type=oneshot
8+
StandardOutput=journal
9+
10+
[Install]
11+
RequiredBy=multi-user.target

etc/systemd/system/hwclock.service

Lines changed: 0 additions & 11 deletions
This file was deleted.

tRackIT.Pifile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RUN git config --global user.email "pi@tRackIT"
6565
RUN git config --global user.name "tRackIT User"
6666

6767
# enable hostname-config script and set default hostname
68-
RUN bash -c 'CMDLINE=$(cat /boot/cmdline.txt); echo "${CMDLINE} -- systemd.hostname=tRackIT" > /boot/cmdline.txt'
68+
RUN bash -c 'CMDLINE=$(cat /boot/cmdline.txt); echo "${CMDLINE} -- systemd.hostname=umr-test-00001" > /boot/cmdline.txt'
6969
RUN systemctl enable hostname-config.service
7070

7171
# Enabling wait for time-sync.target (depending services will not start before the clock is synced)
@@ -134,6 +134,7 @@ RUN tee -a /etc/sysdweb.conf <<EOF
134134
title = Chrony Time Synchronization
135135
unit = chrony
136136
EOF
137+
RUN systemctl enable chrony-waitsync
137138

138139
# Install and enable pymqttutil
139140
RUN python3 -m pip install -e /home/pi/pymqttutil

0 commit comments

Comments
 (0)