Forum OpenACS Q&A: Response to request error when starting aolserver

Collapse
Posted by Pavel Boghita on
I am running bash, my .bash_profile has the right variables set-up, I guess that leaves a problem with the daemontools setup.

This is the svgroup.txt I have used.

#! /bin/sh
if test $# -lt 2 ; then
    echo svgroup groupname directories ... >&2
    echo for example: >&2
    echo svgroup wheel /service/* >&2
    exit 2
fi
g="$1" ; shift
for i in $* ; do
    chgrp $g $i/supervise/control
    chmod g+w $i/supervise/control
    chgrp $g $i/supervise/ok
    chmod g+w $i/supervise/ok
    # just in case
    chgrp $g $i/supervise/status
    chmod g+r $i/supervise/status
    chgrp $g $i/supervise
    chmod g+x $i/supervise
done

In one of the comments it was mentioned that I should put '#!/bin/bash' rather then '#!/bin/sh' as it says in the notes. echo $SHELL does give bash as the output so I did modify the scripts, but this doesn't seem to have any effect