【问题标题】:kill not necessary services of crond杀死 crond 的不必要服务
【发布时间】:2016-03-24 23:27:10
【问题描述】:

我在 ubuntu 中安排了一些 etl 工作

但是从最近几天开始,我收到了重复的数据。我已经完成了所有 etl 工作,一切都很好。

我认为 cron 作业服务存在一些问题。

[root@user Desktop]# ps aux | grep cron
root       632  0.0  0.0 117244  1436 ?        Ss   Dec17   0:02 crond
root      9252  0.0  0.0 117204  1384 ?        Ss   14:15   0:00 crond
root     10045  0.0  0.0 103248   844 pts/57   S+   15:03   0:00 grep cron

当我运行 pgrep crond 时

我得到两个数字 632 和 9252。这是否意味着两个服务同时运行?如果是,任何人都可以帮助我如何杀死不需要的进程?

【问题讨论】:

    标签: ubuntu cron crontab etl cron-task


    【解决方案1】:

    优雅地停止 cron 服务,例如service cron stop。 再次运行 ps 命令,仍然存在的那个应该被杀死。 重启 cron 服务。

    您还可以检查系统日志、cron.log 是否有错误,以找出为什么有两个 cron 进程。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-05
      相关资源
      最近更新 更多