do not use supervisord to start the bind daemon

pull/2/head
Sameer Naik 2014-06-29 12:01:17 +05:30
parent 4ddc923b90
commit b6353e1246
2 changed files with 1 additions and 12 deletions

View File

@ -41,9 +41,8 @@ rm -rf /etc/webmin
ln -sf /app/data/webmin/etc /etc/webmin
appStart () {
supervisorctl start named
/etc/init.d/webmin start
tail -F /var/log/supervisor/supervisord.log
/usr/sbin/named -u bind -g
}
appHelp () {

View File

@ -16,13 +16,3 @@ fi
mkdir -p /var/run/named
chmod 775 /var/run/named
chown root:bind /var/run/named >/dev/null 2>&1 || true
cat > /etc/supervisor/conf.d/named.conf <<EOF
[program:named]
directory=/
command=/usr/sbin/named -u bind -g
user=root
autostart=false
autorestart=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s_error.log
EOF