qbittorrent slows Ubuntu 13.04 to restart or change users

Linux specific questions, problems.
Post Reply
Sergey_Aka

qbittorrent slows Ubuntu 13.04 to restart or change users

Post by Sergey_Aka »

Hi!
Yesterday I installed qbittorrent. It's really awesome. In compare with Transmission Qbittorent has many usefull functions.
But there is annoying bug. Ubuntu can't restart as fast as usually if Qbittorent is running.
I just hit Restart in system menu and about 15-20 seconds after that Ubuntu start restarting. Nothing happens at this time.
If I first manually close Qbittorent then Ubuntu restart normally fast.

Qbittorent starts automaticaly. I added command in autostart menu:

Code: Select all

qbittorrent
Strange… but with this command application offen start without GUI, only background prosess:

Code: Select all

qbittorrent %U
Please help turn back fast restart and close of Ubuntu.

Qbittorrent ver. 3.0.11  http://s1.ipicture.ru/uploads/20130922/qj4l95Ah.png
Ubuntu 13.04 x64.
loki

Re: qbittorrent slows Ubuntu 13.04 to restart or change users

Post by loki »

You probably shouldn't rely on Ubuntu shutting down the process but rather close it before you shutdown or restart. It should exit much more cleanly, and less chance for save data corruption, other bad side effects.
Sergey_Aka

Re: qbittorrent slows Ubuntu 13.04 to restart or change users

Post by Sergey_Aka »

Give me advice. Probably I should create shutdown script for Qbittorrent? But where it must be placed and what I should write in this script?
Sergey_Aka

Re: qbittorrent slows Ubuntu 13.04 to restart or change users

Post by Sergey_Aka »

I tried do this:

1. sudo gedit /etc/rc0.d/K01qbittorrent

2. add code:

Code: Select all

#!/bin/sh
kill -2 `pidof qbittorrent`
3. sudo chmod +x /etc/rc0.d/K01qbittorrent

4. sudo cp -p /etc/rc0.d/K01qbittorrent /etc/rc6.d/K01qbittorrent


But restart and shutdown still slow. It drives me crazy.
If I execute command kill -2 `pidof qbittorrent` manually in terminal then Ubuntu shutdown fast as usually.

What I do wrong?
Last edited by Sergey_Aka on Wed Sep 25, 2013 11:21 am, edited 1 time in total.
Post Reply