Results 1 to 2 of 2

Thread: remove transmission-daemon from startup

  1. #1
    Join Date
    Dec 2009
    Beans
    Hidden!

    remove transmission-daemon from startup

    I've tried the following in rc.local but it gets me nowhere:
    Code:
    TRANSMISSION_TIMING() {
                           for((a=0;a<=5;a++)); do
                           sleep 1 &
                           wait
                           [[ $(top -n1 | grep transmission) == *transmission* ]] && \
                           [[ $(date +%H) -ge 5 ]] && [[ $(date +%H) -lt 23 ]] && /etc/init.d/transmission-daemon stop
                           done
                          }
    
    TRANSMISSION_TIMING &
    Code:
    TRANSMISSION_TIMING() {
                           [[ $(top -n1 | grep transmission) == *transmission* ]] && \
                           [[ $(date +%H) -ge 5 ]] && [[ $(date +%H) -lt 23 ]] && /etc/init.d/transmission-daemon stop
                          }
    
    TRANSMISSION_TIMING &
    nothing i do can keep this thing from launching, and apparently kill it either.

  2. #2
    Join Date
    Dec 2009
    Beans
    Hidden!

    Re: remove transmission-daemon from startup

    ...i always do this...
    Code:
    TRANSMISSION_TIMING() {
                /etc/init.d/transmission-daemon stop
                [[ $(date +%H) -lt 5 ]] && /etc/init.d/transmission-daemon start
                          }
    
    TRANSMISSION_TIMING
    ^ works

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •