Skip to content

Instantly share code, notes, and snippets.

@ShadowJonathan
Created November 22, 2021 10:38
Show Gist options
  • Save ShadowJonathan/75b96be3b8d2c2616e9487e7934111a6 to your computer and use it in GitHub Desktop.
Save ShadowJonathan/75b96be3b8d2c2616e9487e7934111a6 to your computer and use it in GitHub Desktop.
Systemd service to fix vlc spamming syslog after wakeup
# /etc/systemd/system/fix-vlc.service
[Unit]
Description=Fix VLC
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target sleep.target
[Service]
User=root
Type=oneshot
ExecStart=-/usr/bin/killall vlc
TimeoutSec=10
[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment