On 19/03/13 18:51, John Liss wrote:
*From:*[email protected]
[mailto:[email protected]] *On Behalf Of *Rowland Penny
*Sent:* Tuesday, March 19, 2013 10:34 AM
*To:* [email protected]
*Subject:* Re: [Baruwa] Can't get celeryd to run / log empty
On 19/03/13 15:11, Raymond Norton wrote:
Just an FYI to list members that helped me trouble shoot this
issue last week. I was able to get celeryd running fine, as long
as I did not execute this line from the tutorial:
rm --r /usr/share/pyshared/baruwa/settings.py && ln --s
/etc/baruwa/settings.py /usr/share/pyshared/baruwa/
Just tested it again on a clone of my vm and now celeryd will not run.
Bit strange this, if you examine the deb that you download from the
spamsnake instructions, you will find that what 'rm --r
/usr/share/pyshared/baruwa/settings.py && ln --s
/etc/baruwa/settings.py /usr/share/pyshared/baruwa/' does is this:
It removes a symbolic link to /etc/baruwa/settings.py and then
recreates it in exactly the same place.
So if it is failing, there must be a fault in the way you entered the
command, cut & paste by any chance?
Anyway, whatever the reason it failed, it appears to be a pointless
exercise, so IMHO, just don't bother with the command, it, as you say,
works anyway without it.
If you look at the command, it removes the settings.py first, then
tries to link to it.
**shrug** I don't know why you would want to do that.
I think the objective of the author (atleast I have seen it in other
Baruwa installs) is to create a /etc/baruwa/settings.py link to the
real /usr/share/pyshared/baruwa/settings.py
If anything it should be:
rm --rf /etc/baruwa/settings.py; ln --s /etc/baruwa/settings.py
/usr/share/pyshared/baruwa/settings.py
In cmd1 && cmd2, cmd2 is only executed if cmd1 succeeds (returns 0).
In cmd1 ; cmd2, cmd2 is executed in any case.
--
This message has been scanned for viruses and
dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
believed to be clean.
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056
The file /usr/share/pyshared/baruwa/settings.py from the spamsnake deb
is a symbolic link to /etc/baruwa/settings.py.
What the command 'rm --r /usr/share/pyshared/baruwa/settings.py && ln
--s /etc/baruwa/settings.py /usr/share/pyshared/baruwa/' does is:
A) remove a symbolic link to /etc/baruwa/settings.py
B) create a symbolic link to /etc/baruwa/settings.py
So how ever you write it (using ; or &&) it does not make sense.
Creating a config file in the /etc dir is pretty common place in Ubuntu,
so I can see the sense in that, but why put a symbolic link in the deb
and then give instructions to remove it and then recreate it again,
weird I call it.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056