Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I stop transmission-daemon?

I've ran sudo /etc/init.d/transmission-daemon stop and after a while I get confirmation that it completed [ OK ]:

greg@VManage:~$ sudo /etc/init.d/transmission-daemon stop  
 * Stopping bittorrent daemon transmission-daemon                       [ OK ]

but if I immediately run ps aux | grep transm I see that transmission-daemon is still running.

greg@VManage:~$ ps aux | grep trans
122       5047  0.2  0.0 246264  3604 ?        Ssl  15:12   0:00 /usr/bin/transmission-daemon -f --config-dir /var/       lib/transmission-daemon/info
greg      5079  0.0  0.0  13648   944 pts/1    S+   15:12   0:00 grep --color=auto trans

** Updated **

I've also tried killing the process but this has no effect:

greg@VManage:~$ ps aux | grep trans
122       5047  0.0  0.0 250400  3744 ?        Ssl  15:12   0:00 /usr/bin/transm                                                            ission-daemon -f --config-dir /var/lib/transmission-daemon/info
greg     14706  0.0  0.0  13648   944 pts/2    S+   15:49   0:00 grep --color=au                                                            to trans
greg@VManage:~$ sudo kill -9 5047
[sudo] password for greg:
greg@VManage:~$ ps aux | grep trans
122      14795  0.1  0.0 246264  3600 ?        Ssl  15:49   0:00 /usr/bin/transmission-daemon -f --config-dir /var/lib/transmission-daemon/info
greg     14847  0.0  0.0  13648   948 pts/2    S+   15:49   0:00 grep --color=auto trans
greg@VManage:~$ sudo kill -9 14795
greg@VManage:~$ ps aux | grep trans
122      14896  0.5  0.0 246264  3552 ?        Ssl  15:50   0:00 /usr/bin/transmission-daemon -f --config-dir /var/lib/transmission-daemon/info
greg     14912  0.0  0.0  13648   948 pts/2    S+   15:50   0:00 grep --color=auto trans

It looks like the process is being killed but it's being restarted, not the new PID in the 2nd and 3rd calls to ps aux.

share|improve this question
    
fast way sudo kill -9 122. –  2707974 Mar 27 at 15:31
    
@2707974 I tried that as well but no joy. –  Greg B Mar 27 at 15:38
    
We are wrong. PID is 5047. sudo kill -9 5047 –  2707974 Mar 27 at 15:45
    
Usually, sudo service transmission-daemon stop. –  mikewhatever Mar 27 at 15:51
    
@mikewhatever thanks, that did it. Post as an answer and I'll give you the marks. –  Greg B Mar 27 at 15:53

1 Answer 1

sudo service transmission-daemon stop is the way to go.

share|improve this answer
    
but why?! and how is it staying alive? is this some upstart wizardry? –  SimonJGreen May 13 at 21:24
1  
It probably re-spawns, as per the startup script: /etc/init/transmission-daemon.conf. –  mikewhatever Oct 21 at 15:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.