Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c5f5772

Browse files
committedJun 6, 2020
Limiting log messages
Fix #59
1 parent ccdec98 commit c5f5772

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed
 

‎unit/str2str_file.service

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ User={user}
88
ExecStart={script_path}/run_cast.sh in_tcp out_file
99
Restart=on-failure
1010
RestartSec=30
11-
11+
#Limiting log to 1 msg per minute
12+
LogRateLimitIntervalSec=1 minute
13+
LogRateLimitBurst=1
1214

1315
[Install]
1416
WantedBy=multi-user.target

‎unit/str2str_ntrip.service

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ User={user}
1010
ExecStart={script_path}/run_cast.sh in_tcp out_caster
1111
Restart=on-failure
1212
RestartSec=30
13+
#Limiting log to 1 msg per minute
14+
LogRateLimitIntervalSec=1 minute
15+
LogRateLimitBurst=1
1316

1417
[Install]
1518
WantedBy=multi-user.target

‎unit/str2str_rtcm_svr.service

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ User={user}
1010
ExecStart={script_path}/run_cast.sh in_tcp out_rtcm_svr
1111
Restart=on-failure
1212
RestartSec=30
13-
13+
#Limiting log to 1 msg per minute
14+
LogRateLimitIntervalSec=1 minute
15+
LogRateLimitBurst=1
1416

1517
[Install]
1618
WantedBy=multi-user.target

‎unit/str2str_tcp.service

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ User={user}
1010
ExecStart={script_path}/run_cast.sh in_serial out_tcp
1111
Restart=on-failure
1212
RestartSec=30
13-
13+
#Limiting log to 1 msg per minute
14+
LogRateLimitIntervalSec=1 minute
15+
LogRateLimitBurst=1
1416

1517
[Install]
1618
WantedBy=multi-user.target

0 commit comments

Comments
 (0)
Please sign in to comment.