InitScript on Raspberry Pi [Raspbian Wheezy]

General support for problems installing or using Deluge
Post Reply
Cinghiale
New User
New User
Posts: 4
Joined: Mon Feb 04, 2013 2:51 pm

InitScript on Raspberry Pi [Raspbian Wheezy]

Post by Cinghiale »

Dear users,
i'm relatively new to Linux, and I'm just trying to run Deluge at startup on a Raspberry Pi running Raspbian Wheezy.
I've tried the InitScripts for Debian found here: http://dev.deluge-torrent.org/wiki/UserGuide/InitScript/Ubuntu. I copy both files into their folders, choose the username to run deluge as "pi" the standard user also used for login the raspberry\lxde\...; chmod-ded 755 the second file; call "update rc..." [ update-rc.d: using dependency based boot sequencing ]; and finally, calling "invoke.rc.." the terminal give me a : "/usr/sbin/invoke-rc.d: 500: /usr/sbin/invoke-rc.d: /etc/init.d/deluge-daemon: not found
invoke-rc.d: initscript deluge-daemon, action "start" failed.
"
It seems not founding the script, but i accurately cheched permission and file with an editor...

Where I am wrong?

Code: Select all

root@raspberrypi:~# sudo cp /home/RasPiCondivisa/1 /etc/default/deluge-daemon
root@raspberrypi:~# sudo cp /home/RasPiCondivisa/2 /etc/init.d/deluge-daemon
root@raspberrypi:~# sudo chmod 755 /etc/init.d/deluge-daemon
root@raspberrypi:~# sudo update-rc.d deluge-daemon defaults
update-rc.d: using dependency based boot sequencing
root@raspberrypi:~# sudo invoke-rc.d deluge-daemon start
/usr/sbin/invoke-rc.d: 500: /usr/sbin/invoke-rc.d: /etc/init.d/deluge-daemon: not found
invoke-rc.d: initscript deluge-daemon, action "start" failed.
root@raspberrypi:~# :wtf_man:
Anyone could help me with that?
Thanks,
Luca
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: InitScript on Raspberry Pi [Raspbian Wheezy]

Post by Cas »

On Wheezy you can use Upstart scripts instead: http://dev.deluge-torrent.org/wiki/User ... t%20Job%29
Cinghiale
New User
New User
Posts: 4
Joined: Mon Feb 04, 2013 2:51 pm

Re: InitScript on Raspberry Pi [Raspbian Wheezy]

Post by Cinghiale »

Dear Cas,
I know that I'd be thankfull to you, that were unaware that installing Upstart lead to system folders corruption this way causing a boot failure every time; so I'll be, I thank you; but I still wait for an Init.d Initscript, since I have to came back to that solution, after reinstalling all the OS and programs that this way I lost (topic related).

Any other solution than upstart one?
Cinghiale
New User
New User
Posts: 4
Joined: Mon Feb 04, 2013 2:51 pm

Re: InitScript on Raspberry Pi [Raspbian Wheezy]

Post by Cinghiale »

The problem can be easy find while installing upstart, during installation it says:

Code: Select all

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  sysvinit
This way, uninstalling sysvinit, Raspberry Pi doesn't manage to start up again.
So, for this reason, we (raspi users) can't use the upstart solution. :?

Luca
Cinghiale
New User
New User
Posts: 4
Joined: Mon Feb 04, 2013 2:51 pm

Re: InitScript on Raspberry Pi [Raspbian Wheezy]

Post by Cinghiale »

UPDATE:
Setting up the new hardware, I reached in using init.d solution, it actually worked, seems without problem.
It starts both deluged and deluge-web, my only issue is that I'd prefer to start also deluge gui. There is a way to do it?
Thanks
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: InitScript on Raspberry Pi [Raspbian Wheezy]

Post by Cas »

For gui apps you add them to startup applications so try gnome-session-properties.
Post Reply