Docker/cron/syslogng-cron-daily.sh
Rama master · réplica de lectura del repositorio original.
#! /bin/bash
export CONTAINERROLE=":${CONTAINERROLE:-all}:"
if [ "${DASUPERVISORUSERNAME:-null}" != "null" ]; then
SUPERVISORCMD="supervisorctl --serverurl http://localhost:9001 --username ${DASUPERVISORUSERNAME} --password ${DASUPERVISORPASSWORD}"
else
SUPERVISORCMD="supervisorctl --serverurl http://localhost:9001"
fi
if [[ $CONTAINERROLE =~ .*:(log):.* ]] && [ -d /etc/syslog-ng ]; then
${SUPERVISORCMD} restart syslogng
fi