General support for problems installing or using Deluge
chris86wm
Member
Posts: 12 Joined: Mon Feb 01, 2010 4:56 am
Post
by chris86wm » Sat Feb 06, 2010 5:37 pm
The above script gives me the following error when I run it (using Debian)
Code: Select all
/etc/default/deluge-daemon: line 9: --umask: command not found
I really appreciate all of the help guys. Feeling like a dummy now since I cant get this going
Cas
Top Bloke
Posts: 3681 Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland
Post
by Cas » Sat Feb 06, 2010 6:17 pm
chris86wm wrote: The above script gives me the following error when I run it (using Debian)
Code: Select all
/etc/default/deluge-daemon: line 9: --umask: command not found
I really appreciate all of the help guys. Feeling like a dummy now since I cant get this going
Not sure how you got that error, did you modify the script or use the updated version?
Make sure that --umask is part of the start-stop-daemon command options.
Code: Select all
start-stop-daemon --start --background --quiet --pidfile $PIDFILE1 --exec $DAEMON1 \
--umask $UMASK --chuid $DELUGED_USER --user $DELUGED_USER --test > /dev/null
chris86wm
Member
Posts: 12 Joined: Mon Feb 01, 2010 4:56 am
Post
by chris86wm » Sat Feb 06, 2010 6:36 pm
I am using the updated one posted on the wiki
Cas
Top Bloke
Posts: 3681 Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland
Post
by Cas » Sat Feb 06, 2010 6:55 pm
chris86wm wrote: I am using the updated one posted on the wiki
From the console check that your debian start-stop-daemon command has the umask option:
Code: Select all
start-stop-daemon --help | grep umask
It will return
"-k|--umask <mask> change the umask to <mask> before starting" on unbuntu
chris86wm
Member
Posts: 12 Joined: Mon Feb 01, 2010 4:56 am
Post
by chris86wm » Sat Feb 06, 2010 7:20 pm
I checked it and it returned
Code: Select all
-k|--umask <mask> change the umask to <mask> before starting
Cas
Top Bloke
Posts: 3681 Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland
Post
by Cas » Sat Feb 06, 2010 7:25 pm
Code: Select all
/etc/default/deluge-daemon: line 9: --umask: command not found
Re-reading your post it actually seems to suggest --umask has been added to /etc/default/deluge-daemon file, can you check?
chris86wm
Member
Posts: 12 Joined: Mon Feb 01, 2010 4:56 am
Post
by chris86wm » Sat Feb 06, 2010 7:48 pm
That was it! It seems like in my attempt to figure things out, i added some umask stuff to the /etc/default/deluge-daemon file. Man i feel silly.
Thanks for all of your help and patience guys!
JanAcc
Member
Posts: 23 Joined: Mon Dec 22, 2008 1:42 am
Post
by JanAcc » Wed Apr 28, 2010 1:10 pm
Could it be that there is a slight error in the init script for ubuntu?
umask didn't work properly until I changed the line
into
johnnyg
Top Bloke
Posts: 1522 Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia
Post
by johnnyg » Wed Apr 28, 2010 1:53 pm
JanAcc wrote: Could it be that there is a slight error in the init script for ubuntu?
umask didn't work properly until I changed the line
into
I would have assumed that it treated the umask as always being octal but maybe it was treating 22 as decimal due to it not having the leading zero.
I've modified the init script to have a leading zero.
Thanks for telling us.
Centrius
Member
Posts: 18 Joined: Thu Oct 22, 2009 11:34 am
Post
by Centrius » Mon May 17, 2010 3:30 pm
Thanks for this, it was really helpful!