Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 14th December 2010, 02:02
Drex56 Drex56 is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
Default

So I have found the file that puts in the "--ini" into the command. Its called "/usr/lib/uwsgi/init/snippets" and I couldn't see a problem with the syntax (which is "echo ${1: -3}" for those who care)...So I hacked it (badly!). mine now reads

"echo ini # ${1: -3}"

Just means I can only have INI files, no XML for me, not that I care.

Anyway, my thanks to Rocky for helping me out and hope this is helpful for some others out there!

Regards,

Drex

Last edited by Drex56; 14th December 2010 at 02:05. Reason: Damn my typos!
Reply With Quote
The Following User Says Thank You to Drex56 For This Useful Post:
Rocky (14th December 2010)
Sponsored Links
  #12  
Old 14th December 2010, 04:54
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 551
Thanks: 14
Thanked 48 Times in 47 Posts
Default

Drex,

Sorry for not following up, been really busy. However, I'm happy you got it working. You did some great detective work .

I didn't have to do the edit because it just works with 10.10, but it must behave differently with 10.04.

Good job. I'll make sure to note it.

Rocky
__________________
Home of the SpamSnake
Reply With Quote
  #13  
Old 14th December 2010, 10:45
Drex56 Drex56 is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi Rocky,

Thanks, In all honesty, it may have something to do with the fact I was using the Lucid release of uWSGI rather than the Maverick that you used in the HowTo.

Also, thanks for creating such a great solution and putting up here for the likes of myself to go through as use.

Regards

Drex
Reply With Quote
  #14  
Old 14th December 2010, 13:50
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 551
Thanks: 14
Thanked 48 Times in 47 Posts
Default

Hey,

No problem at all and thank you for your interest in using the SpamSnake. The truth is without all the pieces, which are free, I would have never been able to build it. I believe that since I'm using free software to make this happen, I owe it to the community to release the Snake free also. We should also thank all the developers of those pieces, especially Andrew for creating his wonderful frontend Baruwa.

Rocky
__________________
Home of the SpamSnake
Reply With Quote
  #15  
Old 17th December 2010, 18:18
mintydave mintydave is offline
Junior Member
 
Join Date: Dec 2010
Posts: 23
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rocky View Post
We should also thank all the developers of those pieces, especially Andrew for creating his wonderful frontend Baruwa.
Rocky
Baruwa is definitely a night and day contrast (for the better) than the original mailscanner front end. I too thank you. I really hope to see some more documentation for this project.

Thank you, Andrew.


Dave.
Deconn Technical Services
Reply With Quote
  #16  
Old 19th December 2010, 02:30
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 551
Thanks: 14
Thanked 48 Times in 47 Posts
Default

Go here https://github.com/akissa/baruwa, check the docs/source folder, you'll find some documents in there.
__________________
Home of the SpamSnake
Reply With Quote
  #17  
Old 22nd December 2010, 06:21
130 130 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Drex56 View Post
So I have found the file that puts in the "--ini" into the command. Its called "/usr/lib/uwsgi/init/snippets" and I couldn't see a problem with the syntax (which is "echo ${1: -3}" for those who care)...So I hacked it (badly!). mine now reads

"echo ini # ${1: -3}"
Yes, it was my unintentional mistake. Sorry for distributing buggy uWSGI package (as excuse, I can tell that this line works perfectly in Debian).

But there is good news. I've made new packages of uWSGI 0.9.6.5 for Ubuntu 10.10 (and 10.04) where this bug was fixed.

If you're interested, take a look at the PPA page: https://launchpad.net/~uwsgi/+archive/release

Or just replace line
Code:
echo ${1: -3}
to
Code:
echo "$1" | sed 's/^.*\(ini\|xml\)$/\1/g'
Technically speaking, buggy line has bash-specific syntax, but default shell on Ubuntu is dash, where bash-specific things doesn't works. This is why this line fails.
Reply With Quote
  #18  
Old 8th February 2011, 22:21
Drex56 Drex56 is offline
Junior Member
 
Join Date: May 2010
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
 
Smile

Thanks 130, thats much appriciated, especially as I now have to rebuild the Spam Snake server. Will check it out...

Regards,
Drex
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clamav issue with The Perfect SpamSnake - Ubuntu Jeos 9.10 Maxum HOWTO-Related Questions 7 21st March 2011 16:21
Connection timed out on intermail outgoing mails gouravgarg Server Operation 6 5th March 2010 20:31
MailScanner trouble with DBD-MYSQL sergio.arnaldo Server Operation 11 26th August 2009 18:08
Howtoforge the perfect Server(links) rini90 Installation/Configuration 0 14th December 2008 10:58
SpamSnake SpamAssassin not working? getrav HOWTO-Related Questions 5 23rd June 2008 23:02


All times are GMT +2. The time now is 03:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.