Posted by paolo on 27 November, 2009
On a clean server I installed Lenny, I used aptitude to install Lighttpd (1.4.19 a bit old, I know), Mysql, php5-cgi (with php5-apc).
Nothing unusual, nothing strange, no handmade modifications. I think that was pretty standard, but I found (thanks Munin) that MySQL was having big utilization spikes (and so was the server’s load) while admins of a WordPress installation where POSTing things, doing Uploads, etc.

Then I found someone on the Lighttpd forum having a similar issue with FreeBSD. So I tried to change the “server.network-backend” conf from “linux-sendfile” to “writev” and the issue disappeared.
I hope this can help someone else.
Posted in Lighttpd, networking | 2 Comments »
Posted by paolo on 9 October, 2009
# Simpserver: (MSN/IM Encryption server)
# ————————
check process simpserver with pidfile /var/run/simpserver.pid
start program = “/etc/init.d/simpserver start”
stop program = “/etc/init.d/simpserver stop”
if 5 restarts within 5 cycles then timeout
#!/bin/sh
#
# Startup script for simpserver
#
# description: simpserver is a socks proxy to encrypt IM/MSN/ICQ conversation
# processname: simpserver
# Source function library.
. /etc/rc.d/init.d/functions
SIMPSERVER=/usr/local/simp/bin/simpserver
PIDFILE=/var/run/simpserver.pid
# See how we were called.
case “$1″ in
start)
echo -n “Starting Simpserver: “
sudo -u simpuser nohup $SIMPSERVER &
echo
pidof simpserver > $PIDFILE
touch /var/lock/subsys/simpserver
;;
stop)
echo -n “Shutting down simpserver: “
killproc simpserver
echo
rm -f $PIDFILE
rm -f /var/lock/subsys/simpserver
;;
status)
status simpserver
;;
restart)
$0 stop
$0 start
;;
*)
echo “Usage: $0 {start|stop|restart|status}”
exit 1
esac
exit 0
Posted in thinking | Leave a Comment »
Posted by paolo on 25 June, 2009
Anyone? It’s a really cool software, why doesn’t I can’t find an hosted version? I promise that I’m willing to pay! Little money, but for real.
Thanks for your patience
Posted in thinking | Leave a Comment »
Posted by paolo on 4 March, 2009
Posted in Links | 1 Comment »
Posted by paolo on 2 March, 2009
Posted in Links | Leave a Comment »
Posted by paolo on 1 March, 2009
Posted in Links | Leave a Comment »
Posted by paolo on 25 February, 2009
Posted in Links | Leave a Comment »
Posted by paolo on 23 February, 2009
Posted in Links | Leave a Comment »
Posted by paolo on 21 February, 2009
Posted in Links | Leave a Comment »