We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffd026a commit f1b566cCopy full SHA for f1b566c
logrotate-ntripcaster.service
@@ -0,0 +1,6 @@
1
+[Unit]
2
+Description=Rotate and Compress ntripcaster Logs
3
+
4
+[Service]
5
+ExecStart=/usr/sbin/logrotate /usr/local/ntripcaster/ntripcaster.logrotate
6
ntripcaster.logrotate
@@ -0,0 +1,7 @@
+/tmp/ntripcaster.log {
+ su root root
+ copytruncate
+ size 10M
+ rotate 2
+ nocompress
7
+}
update.sh
@@ -1,9 +1,11 @@
#!/bin/bash
cp ntripcaster.conf /usr/local/ntripcaster/
+cp ntripcaster.logrotate /usr/local/ntripcaster/
cp *.service /etc/systemd/system
systemctl daemon-reload
8
9
systemctl try-restart ntripcaster.service
-systemctl try-restart str2str
10
+systemctl try-restart str2str.service
11
+systemctl try-restart logrotate-ntripcaster.service
0 commit comments