|
Lines 11-16
Link Here
|
| 11 |
# /etc/rc.conf.local |
11 |
# /etc/rc.conf.local |
| 12 |
# /etc/rc.conf.d/atop |
12 |
# /etc/rc.conf.d/atop |
| 13 |
# |
13 |
# |
|
|
14 |
# Add the following lines to /etc/rc.conf to enable atop in daemon mode: |
| 15 |
# atop_enable (bool): Set to "NO" by default. |
| 16 |
# Set it to "YES" to enable atop in daemon mode |
| 17 |
# atop_interval (str): Set to 10 by default |
| 18 |
# Interval for data capture. |
| 19 |
# atop_logdir (str): Set to "%%LOGDIR%%". |
| 20 |
# Directory to store atop binary logs |
| 21 |
# atop_keepdays (str): Set to 30 by default. |
| 22 |
# Number of days to keep the logs when "rotate" |
| 23 |
# command is running. |
| 24 |
# atop_flags (str): Set to "" by default. |
| 25 |
# Extra flags passed to start command. |
| 26 |
# |
| 27 |
# |
| 14 |
# DO NOT CHANGE THESE DEFAULT VALUES HERE |
28 |
# DO NOT CHANGE THESE DEFAULT VALUES HERE |
| 15 |
|
29 |
|
| 16 |
. /etc/rc.subr |
30 |
. /etc/rc.subr |
|
Lines 45-51
Link Here
|
| 45 |
|
59 |
|
| 46 |
atop_rotate() |
60 |
atop_rotate() |
| 47 |
{ |
61 |
{ |
| 48 |
|
|
|
| 49 |
echo "Rotating logfile (${name})." |
62 |
echo "Rotating logfile (${name})." |
| 50 |
# write final sample and stop |
63 |
# write final sample and stop |
| 51 |
sig_stop=SIGUSR2 |
64 |
sig_stop=SIGUSR2 |