ak47suk1

rtorrent init script

Jan 3rd, 2014
1,688
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. # rTorrent init script
  3. #
  4.  
  5. case "$1" in
  6.   start)
  7.     echo "Starting rtorrent..."
  8. # gantikan $USERNAME dengan nama pengguna anda
  9.     su $USERNAME -c 'screen -dmS rtorrent rtorrent'
  10.     ;;
  11.   stop)
  12.     echo "Stopping rtorrent..."
  13.     killall -s 2 rtorrent
  14.     ;;
  15.   *)
  16.     echo "Usage: $0 {start|stop}"
  17.     exit 1
  18.     ;;
  19. esac
RAW Paste Data