Skip to content

Instantly share code, notes, and snippets.

@carneeki
Last active Dec 29, 2021
Embed
What would you like to do?
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