Guest User

Untitled

a guest
Jun 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ## /etc/conf.d/rtorrentd
  2. USER="dabdemoulaie"
  3. ## /etc/init.d/rtorrend
  4. #!/sbin/runscript
  5. # Copyright 1999-2008 Gentoo Foundation
  6. # Distributed under the terms of the GNU General Public License v2
  7. # $Header: /var/cvsroot/gentoo-x86/net-p2p/rtorrent/files/rtorrentd.init,v 1.1 2008/12/26 07:01:43 darkside Exp $
  8. depend() {
  9. use net.*
  10. }
  11.  
  12. start() {
  13. ebegin "Starting rtorrent"
  14. start-stop-daemon --start --chuid $USER \
  15. --env TERM="xterm" \
  16. --env HOME="/home/$USER" \
  17. --exec /usr/bin/screen -- -dmS rtorrentd /usr/bin/rtorrent
  18. eend $?
  19. }
  20.  
  21. stop() {
  22. ebegin "Stopping rtorrent"
  23. start-stop-daemon --stop --signal 2 --name rtorrent
  24. eend $?
  25. }
Add Comment
Please, Sign In to add comment