You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stop.sh 494B

1234567891011121314151617181920
  1. #! /bin/sh
  2. # If deluge-pre-stop.sh exists, run it
  3. if [ -x /scripts/deluge-pre-stop.sh ]
  4. then
  5. echo "Executing /scripts/deluge-pre-stop.sh"
  6. /scripts/deluge-pre-stop.sh
  7. echo "/scripts/deluge-pre-stop.sh returned $?"
  8. fi
  9. kill $(pidof deluged)
  10. kill $(pidof deluge-web)
  11. # If deluge-post-stop.sh exists, run it
  12. if [ -x /scripts/deluge-post-stop.sh ]
  13. then
  14. echo "Executing /scripts/deluge-post-stop.sh"
  15. /scripts/deluge-post-stop.sh
  16. echo "/scripts/deluge-post-stop.sh returned $?"
  17. fi