aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2010-04-20 00:39:30 +0800
committersem <sem@FreeBSD.org>2010-04-20 00:39:30 +0800
commitb7acacf5cb6e7d49501284b818bf45c2075ba227 (patch)
tree3ad78acab752fc3092ed4798801ec6073d9f49f5 /net-mgmt
parent481d374d01bf85244e3f4f6c77313b47bc5dbd2e (diff)
downloadfreebsd-ports-gnome-b7acacf5cb6e7d49501284b818bf45c2075ba227.tar.gz
freebsd-ports-gnome-b7acacf5cb6e7d49501284b818bf45c2075ba227.tar.zst
freebsd-ports-gnome-b7acacf5cb6e7d49501284b818bf45c2075ba227.zip
- Prefer crontab(1) command instead of editing of /etc/crontab in pkg-message.
Offered by: Terrence Koeman <root at mediamonks.net>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/cacti/files/pkg-message.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/net-mgmt/cacti/files/pkg-message.in b/net-mgmt/cacti/files/pkg-message.in
index 25a51b4eb7b9..bb07954a2f85 100644
--- a/net-mgmt/cacti/files/pkg-message.in
+++ b/net-mgmt/cacti/files/pkg-message.in
@@ -10,8 +10,9 @@ you may have to follow this steps to make it work correctly:
3. Import the default cacti database:
# mysql cacti < %%PREFIX%%/%%CACTIDIR%%/cacti.sql
4. Edit %%PREFIX%%/%%CACTIDIR%%/include/config.php.
-5. Add a line to your /etc/crontab file similar to:
-*/5 * * * * %%CACTIUSER%% %%LOCALBASE%%/bin/php %%PREFIX%%/%%CACTIDIR%%/poller.php > /dev/null 2>&1
+5. Add the line to cron jobs with the command:
+# crontab -u %%CACTIUSER%% -e
+*/5 * * * * %%LOCALBASE%%/bin/php %%PREFIX%%/%%CACTIDIR%%/poller.php > /dev/null 2>&1
6. Add alias in apache config for the cacti dir:
Alias /cacti "%%PREFIX%%/%%CACTIDIR%%/"
7. Be sure apache gives an access to the directory ('Allow from' keywords).