Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 3593  / 1 Year ago, wed, january 4, 2023, 1:05:13

I added Deluge in Startup applications and sometimes after restart or shutdown, Deluge won't start. If I try to run it in terminal then I get the next error:



vas@LenovoZ580:~$ deluge
[ERROR ] 11:18:36 ipcinterface:156 Deluge restart failed: Couldn't listen on any:/home/vas/.config/deluge/ipc/deluge-gtk: Cannot acquire lock.


If I delete /home/vas/.config/deluge/ipc/deluge-gtk and /home/vas/.config/deluge/ipc/deluge-gtk.lockthen Deluge starts normally.



How can I set that when I restart or shutdown the laptop, these 2 files to be deleted if they exist?


More From » deluge

 Answers
6

You could make a script that deletes the two files and set it to run at start-up.



Something like this:



#!/bin/bash
rm /home/vas/.config/deluge/ipc/deluge-gtk
rm /home/vas/.config/deluge/ipc/deluge-gtk.lock


You'll need to place your scripts in /etc/init.d/.



See: https://superuser.com/questions/155476/how-do-i-make-a-script-run-upon-startup-of-the-ubuntu-machine



Also here is a short tutorial on how to bash script: https://help.ubuntu.com/community/Beginners/BashScripting


[#28357] Wednesday, January 4, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irtuallyefu

Total Points: 429
Total Questions: 97
Total Answers: 119

Location: Hong Kong
Member since Tue, Oct 19, 2021
3 Years ago
irtuallyefu questions
;