aboutsummaryrefslogtreecommitdiff
path: root/sysutils/atop/files
diff options
context:
space:
mode:
authorAlexander Logvinov <avl@FreeBSD.org>2011-07-05 14:04:12 +0000
committerAlexander Logvinov <avl@FreeBSD.org>2011-07-05 14:04:12 +0000
commite21c29e2320e3cc0ff8c4673cae15cdc38cd1a76 (patch)
treefe81592caeba95612dbed9025098bdbc995f51d0 /sysutils/atop/files
parent23f2cce51c9eccb664753ede0ee789bd6aaeec21 (diff)
downloadports-e21c29e2320e3cc0ff8c4673cae15cdc38cd1a76.tar.gz
ports-e21c29e2320e3cc0ff8c4673cae15cdc38cd1a76.zip
Notes
Diffstat (limited to 'sysutils/atop/files')
-rw-r--r--sysutils/atop/files/atop.in17
-rw-r--r--sysutils/atop/files/pkg-message.in2
2 files changed, 16 insertions, 3 deletions
diff --git a/sysutils/atop/files/atop.in b/sysutils/atop/files/atop.in
index 3b7aeca851ba..0b0e872b8492 100644
--- a/sysutils/atop/files/atop.in
+++ b/sysutils/atop/files/atop.in
@@ -11,6 +11,20 @@
# /etc/rc.conf.local
# /etc/rc.conf.d/atop
#
+# Add the following lines to /etc/rc.conf to enable atop in daemon mode:
+# atop_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable atop in daemon mode
+# atop_interval (str): Set to 10 by default
+# Interval for data capture.
+# atop_logdir (str): Set to "%%LOGDIR%%".
+# Directory to store atop binary logs
+# atop_keepdays (str): Set to 30 by default.
+# Number of days to keep the logs when "rotate"
+# command is running.
+# atop_flags (str): Set to "" by default.
+# Extra flags passed to start command.
+#
+#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
. /etc/rc.subr
@@ -25,7 +39,7 @@ load_rc_config $name
: ${atop_interval=10}
: ${atop_keepdays=30}
-pidfile="${atop_pidfile:-'/var/run/atop.pid'}"
+pidfile=${atop_pidfile:-'/var/run/atop.pid'}
command="%%PREFIX%%/bin/atop"
extra_commands="rotate"
@@ -45,7 +59,6 @@ atop_start()
atop_rotate()
{
-
echo "Rotating logfile (${name})."
# write final sample and stop
sig_stop=SIGUSR2
diff --git a/sysutils/atop/files/pkg-message.in b/sysutils/atop/files/pkg-message.in
index fc098e7495e4..a81833321777 100644
--- a/sysutils/atop/files/pkg-message.in
+++ b/sysutils/atop/files/pkg-message.in
@@ -10,7 +10,7 @@ in your /etc/rc.conf.
You will also need to add "rotate" command to the system crontab:
-0 0 * * * %%PREFIX%%/etc/rc.d/atop rotate
+0 0 * * * %%PREFIX%%/etc/rc.d/atop rotate >dev/null
To change number of days to keep the logs (default - 30) use atop_keepdays
variable in your /etc/rc.conf file.