Skip to content

Commit

Permalink
Update zerostorage_indicators.service
Browse files Browse the repository at this point in the history
use rsync instead of cp
  • Loading branch information
nicolas-f authored Sep 17, 2024
1 parent 8517309 commit 1ea8a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/rpi_systemd/zerostorage_indicators.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Requires=zerorecord.service
[Service]
Type=simple
ExecStart=/usr/bin/python3.9 -u /home/pi/noisesensor/services/zero_filestorage.py -o /home/pi/noisesensor/out/ --overflow_folder /home/pi/noisesensor/outsd/ --overflow_size 128 -i tcp://127.0.0.1:10005/indicators --compress -r 30 -t %%Y_%%m_%%d.%%Hh%%M --insert_hwa eth0
ExecStopPost=/usr/bin/cp /home/pi/noisesensor/out/*.gz /home/pi/noisesensor/outsd/
ExecStopPost=/usr/bin/rsync -ai --exclude='*.tmp' --remove-source-files /home/pi/noisesensor/out/ /home/pi/noisesensor/outsd/
WorkingDirectory=/home/pi/noisesensor/
Restart=always
RestartSec=5s
Expand Down

0 comments on commit 1ea8a50

Please sign in to comment.