I've been playing with Starling quite a bit recently. Like most of my deployed tools, I like to be sure that it's running. Here's a run script for Starling under DeamonTools:

#!/bin/sh
# This is /home/starling/service/run

exec 2>&1

echo "Starting..."

PORT=22122
IP=0.0.0.0
USER=starling
HOME=/home/starling

exec setuidgid $USER \
     starling -v -v -v -h $IP -p $PORT -P $HOME/starling.pid -q $HOME/queue 2>&1

You'll want to keep the logs too. Here's the log/run script:

#!/bin/sh
# This is /home/starling/service/log/run

exec multilog t s1000000 n10 ./main

Note that you'll have to create the starling user to use these scripts (or just change the scripts).

written by
Craig
published
2009-05-13
Disagree? Found a typo? Got a question?
If you'd like to have a conversation about this post, email craig@barkingiguana.com. I don't bite.
You can verify that I've written this post by following the verification instructions:
curl -LO http://barkingiguana.com/2009/05/13/running-starling-under-daemontools.html.orig
curl -LO http://barkingiguana.com/2009/05/13/running-starling-under-daemontools.html.orig.asc
gpg --verify running-starling-under-daemontools.html.orig{.asc,}