How to solve the problem witch is the system send many emails when cron have something wrong

StorageServer# ee /etc/crontab
在第一行加上MAILTO=""

StorageServer# ps auxwww | grep cron
root     441  0.0  0.0  1368   836  ??  Is   23Jul08   0:10.74 /usr/sbin/cron -s
root   72434  0.0  0.0  1412  1028  ??    10:01AM   0:00.00 cron: running job (cron)
root   72895  0.0  0.0   384   244  p1  D+   10:55AM   0:00.00 grep cron
StorageServer# kill -HUP 441  
杀掉cron并重启

FreeBSD下Kill命令的使用方法
SIG名称     代码      意义
HUP                     hang up,通常用来叫程序重新加载设定。
INT                     interrup,通知程序中止。
QUIT                    quit,通知程序离开。
ABRT                    abort,中断程序。
KILL                    non-catchable, non-ignorable kill,直接通知 kernel 把该程序杀死。
ALRM           14          alarm clock。
TERM           15           software termination signal,通知程序结束。  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值