Skip to content

Instantly share code, notes, and snippets.

@carneeki
Last active December 29, 2021 03:37
Show Gist options
  • Save carneeki/5460f3452b5dd3da1f13e3456529553e to your computer and use it in GitHub Desktop.
Save carneeki/5460f3452b5dd3da1f13e3456529553e to your computer and use it in GitHub Desktop.
deluge-gtk-graceful-kill service

Files found from an AUR source that appears to be dead. This is my attempt to keep it going if the original author has abandoned it.

Two files to be installed:

  • /usr/lib/systemd/deluge-gtk-graceful-kill.service
  • /usr/bin/delugepkill.sh
[Unit]
Description=kills deluge-gtk gracefully on shutdown
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/true
ExecStop=/usr/bin/delugepkill.sh
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
#!/bin/bash
pkill -f deluge-gtk
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment