dunst.service 435 B

12345678910111213141516
  1. # symlink this to /etc/systemd/system/
  2. [Unit]
  3. Description=Dunst Notification Daemon
  4. [Service]
  5. Type=forking
  6. KillMode=none
  7. User=rtorrent
  8. ExecStart=/usr/bin/tmux new-session -c /mnt/storage/rtorrent -s rtorrent -n rtorrent -d rtorrent
  9. ExecStop=/usr/bin/bash -c "/usr/bin/tmux send-keys -t rtorrent C-q && while pidof rtorrent > /dev/null; do sleep 0.5; done"
  10. WorkingDirectory=%h
  11. Restart=on-failure
  12. [Install]
  13. WantedBy=multi-user.target