Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fjail @ 366:423c16c3280f
Also configure the periodic part of "bsdstats"
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Mon, 19 Dec 2022 12:07:33 +0100 |
| parents | d971cb4b6ab0 |
| children | 84d2735fe7f6 |
comparison
equal
deleted
inserted
replaced
| 365:38453167f4be | 366:423c16c3280f |
|---|---|
| 457 | 457 |
| 458 sysrc -R "${_mp}" sendmail_enable=NONE | 458 sysrc -R "${_mp}" sendmail_enable=NONE |
| 459 sysrc -R "${_mp}" clear_tmp_enable=YES | 459 sysrc -R "${_mp}" clear_tmp_enable=YES |
| 460 sysrc -R "${_mp}" clear_tmp_X=NO | 460 sysrc -R "${_mp}" clear_tmp_X=NO |
| 461 sysrc -R "${_mp}" syslogd_flags=-ss | 461 sysrc -R "${_mp}" syslogd_flags=-ss |
| 462 sysrc -R "${_mp}" bsdstats_enable=NO # no automatic BSD stats when booting | 462 sysrc -R "${_mp}" bsdstats_enable=NO # no automatic BSD stats when booting (for periodic see below) |
| 463 else | 463 else |
| 464 echo "WARNING: No \"${_mp}/etc/defaults/rc.conf\": not configuring \"rc.conf\"" | 464 echo "WARNING: No \"${_mp}/etc/defaults/rc.conf\": not configuring \"rc.conf\"" |
| 465 fi | 465 fi |
| 466 | 466 |
| 467 if [ -f "${_mp}/usr/share/zoneinfo/Europe/Berlin" ]; then | 467 if [ -f "${_mp}/usr/share/zoneinfo/Europe/Berlin" ]; then |
| 510 echo "Disable some scripts that are enabled by default ..." | 510 echo "Disable some scripts that are enabled by default ..." |
| 511 echo "daily_ntpd_leapfile_enable=\"NO\"" >> "${_pcl}" | 511 echo "daily_ntpd_leapfile_enable=\"NO\"" >> "${_pcl}" |
| 512 echo "daily_status_zfs_zpool_list_enable=\"NO\"" >> "${_pcl}" | 512 echo "daily_status_zfs_zpool_list_enable=\"NO\"" >> "${_pcl}" |
| 513 echo "daily_status_disks_enable=\"NO\"" >> "${_pcl}" | 513 echo "daily_status_disks_enable=\"NO\"" >> "${_pcl}" |
| 514 echo "daily_status_uptime_enable=\"NO\"" >> "${_pcl}" | 514 echo "daily_status_uptime_enable=\"NO\"" >> "${_pcl}" |
| 515 | |
| 516 # | |
| 517 # bsdstats | |
| 518 # | |
| 519 echo "" >> "${_pcl}" | |
| 520 echo "#" >> "${_pcl}" | |
| 521 echo "# bsdstats" >> "${_pcl}" | |
| 522 echo "#" >> "${_pcl}" | |
| 523 # Disabled by default but make it more explicit | |
| 524 echo "monthly_statistics_enable=\"NO\"" >> "${_pcl}" | |
| 525 # If enabled: because we are in a jail there are no devices | |
| 526 echo "monthly_statistics_report_devices=\"NO\"" >> "${_pcl}" | |
| 527 # If enabled: report ports | |
| 528 echo "monthly_statistics_report_ports=\"YES\"" >> "${_pcl}" | |
| 515 | 529 |
| 516 echo "Creating system logfiles that are marked for automatic creation ..." | 530 echo "Creating system logfiles that are marked for automatic creation ..." |
| 517 chroot "${_mp}" /usr/sbin/newsyslog -CN | 531 chroot "${_mp}" /usr/sbin/newsyslog -CN |
| 518 | 532 |
| 519 else | 533 else |
