jessie_bind_chroot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
jessie_bind_chroot [2015/12/18 20:07] – admin | jessie_bind_chroot [2016/01/25 08:33] (current) – [Long story short:] admin | ||
---|---|---|---|
Line 30: | Line 30: | ||
< | < | ||
- | mkdir -p / | + | mkdir -p / |
</ | </ | ||
Line 38: | Line 38: | ||
mknod / | mknod / | ||
chmod 660 / | chmod 660 / | ||
+ | chown bind / | ||
</ | </ | ||
Move the current config directory into the new chroot directory: | Move the current config directory into the new chroot directory: | ||
Line 57: | Line 58: | ||
chgrp bind / | chgrp bind / | ||
</ | </ | ||
- | Edit the PIDFILE variable | + | Edit the PIDFILE variable to the correct path: |
< | < | ||
PIDFILE=/ | PIDFILE=/ | ||
Line 68: | Line 69: | ||
< | < | ||
/ | / | ||
+ | </ | ||
+ | |||
+ | ====Logging==== | ||
+ | |||
+ | / | ||
+ | < | ||
+ | / | ||
+ | daily | ||
+ | compress | ||
+ | delaycompress | ||
+ | rotate 5 | ||
+ | missingok | ||
+ | postrotate | ||
+ | [ -e / | ||
+ | endscript | ||
+ | } | ||
+ | |||
+ | / | ||
+ | daily | ||
+ | compress | ||
+ | delaycompress | ||
+ | rotate 5 | ||
+ | missingok | ||
+ | postrotate | ||
+ | [ -e / | ||
+ | endscript | ||
+ | } | ||
+ | |||
+ | / | ||
+ | daily | ||
+ | compress | ||
+ | delaycompress | ||
+ | rotate 5 | ||
+ | missingok | ||
+ | postrotate | ||
+ | [ -e / | ||
+ | endscript | ||
+ | } | ||
+ | |||
</ | </ | ||
Line 79: | Line 119: | ||
systemctl daemon-reload | systemctl daemon-reload | ||
- | mkdir -p / | + | mkdir -p / |
mknod / | mknod / | ||
mknod / | mknod / | ||
chmod 660 / | chmod 660 / | ||
+ | chown bind / | ||
mv /etc/bind / | mv /etc/bind / | ||
ln -s / | ln -s / | ||
Line 90: | Line 131: | ||
chmod 775 / | chmod 775 / | ||
chgrp bind / | chgrp bind / | ||
+ | chown bind / | ||
+ | touch / | ||
+ | ln -s / | ||
+ | chgrp bind / | ||
vi / | vi / | ||
Line 98: | Line 143: | ||
</ | </ | ||
- | + | * Add the logrotate script from above | |
- | chown bind / | + |
jessie_bind_chroot.1450469265.txt.gz · Last modified: 2015/12/19 14:59 (external edit)