mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
- Prefer crontab(1) command instead of editing of /etc/crontab in pkg-message.
Offered by: Terrence Koeman <root at mediamonks.net>
This commit is contained in:
parent
56b9036f51
commit
408cb2a28d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252919
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user