Skip to content

Instantly share code, notes, and snippets.

View samirsaliba's full-sized avatar

Samir Saliba Jr samirsaliba

  • UFMG
  • Belo Horizonte, Brazil
View GitHub Profile
[Unit]
Description=deletes all but the last 1000 lines of syslog due to possible logging spam by VLC
[Service]
Type=oneshot
ExecStart=-/usr/local/sbin/truncate_syslog.sh
TimeoutSec=0
StandardOutput=syslog
After=suspend.target