Running Starling under DaemonTools

May 13, 2009 · 1 min read

I have been playing with Starling quite a bit recently. Like most of my deployed tools, I want to be confident it stays running. Here is a run script for Starling under DaemonTools:

#!/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 will want to keep the logs too. Here is the log/run script:

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

exec multilog t s1000000 n10 ./main

Note that you will need to create the starling user before using these scripts, or just update them to use an existing user.

These posts are LLM-aided. Backbone, original writing, and structure by Craig. Research and editing by Craig + LLM. Proof-reading by Craig.