View | Details | Raw Unified | Return to bug 16974
Collapse All | Expand All

(-)a/debian/scripts/koha-plack (-1 / +18 lines)
Lines 72-77 start_plack() Link Here
72
        PSGIFILE="/etc/koha/sites/${instancename}/plack.psgi"
72
        PSGIFILE="/etc/koha/sites/${instancename}/plack.psgi"
73
    fi # else stick with the default one
73
    fi # else stick with the default one
74
74
75
    _check_and_fix_perms $instancename
76
75
    STARMANOPTS="-M FindBin --max-requests 50 --workers 2 \
77
    STARMANOPTS="-M FindBin --max-requests 50 --workers 2 \
76
                 --user=${instancename}-koha --group ${instancename}-koha \
78
                 --user=${instancename}-koha --group ${instancename}-koha \
77
                 --pid ${PIDFILE} \
79
                 --pid ${PIDFILE} \
Lines 204-209 EOM Link Here
204
    fi
206
    fi
205
}
207
}
206
208
209
_check_and_fix_perms()
210
{
211
    local instance=$1
212
213
    local files="/var/log/koha/${instance}/plack.log \
214
                 /var/log/koha/${instance}/plack-error.log"
215
216
    for file in ${files}
217
    do
218
        if [ ! -e "${file}" ]; then
219
            touch ${file}
220
        fi
221
        chown "${instance}-koha":"${instance}-koha" ${file}
222
    done
223
}
224
207
set_action()
225
set_action()
208
{
226
{
209
    if [ "$op" = "" ]; then
227
    if [ "$op" = "" ]; then
210
- 

Return to bug 16974