buddycloud/buddycloud-server — Issue #39: Bug in init script on 0.1.11
Author: jamestait
Created: 2012-01-31 13:58:02+00:00
State: open

There's a small bug in the init script in 0.1.11 - in do_start, the block that checks for and creates the log and runtime directories actually only checks for $PIDDIR - it should check for $dir:

do_start()
{
# Return
# 0 if daemon has been started
# 1 if daemon was already running
# 2 if daemon could not be started

for dir in "$PIDDIR" "$LOGDIR"; do
if [ ! -d $dir ]; then
mkdir -p "$dir" || return 2
chown "$RUN_AS_USER": "$dir" || return 2
chmod 755 "$dir" || return 2
fi
done