AMH 面板 amcrontab-2.5 异常
不是功能异常,而是把/usr/local/amh-7.1/etc/crontab.conf路径中的注释也出现在任务列表:
如图:
尝试过重新加#注释,但问题没有解决
使用过二十几台服务器,这个问题我也第一次遇到……
/usr/local/amh-7.1/etc/crontab.conf:
#
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
# 每5分钟检查一次流量
*/5 * * * * /root/check_traffic.sh
# 每月1号重置网络和流量统计
0 0 1 * * /root/reset_network.sh
*/5 * * * * amh amh-7.1 admin desktop_cron #memo=桌面程序
30 12 * * * amh amssl admin exp_cron #memo=SSL过期通知
这个是没遇到过,crontab -e
先把其余的注释删除,新版本再做优化。