zoukankan      html  css  js  c++  java
  • crond dead but pid file exists 问题解决办法

      之前写过一个定时关机的crontab,后来关掉之后发现还是每天定时关机

    查看crontab状态

    1 [root@puppetclient var]# service crond status
    2 crond dead but pid file exists

    提示报错: crond dead but pid file exists

    解决过程

    ps -ef | grep crond 以及把进程杀死 查看还是有该报错

    尝试把进程文件删除掉

     1 [root@puppetclient var]# find -name cron*
     2 ./spool/anacron/cron.daily
     3 ./spool/anacron/cron.weekly
     4 ./spool/anacron/cron.monthly
     5 ./spool/cron
     6 ./lock/subsys/crond
     7 ./run/cron.reboot
     8 ./run/crond.pid
     9 
    10 [root@puppetclient run]# rm -rf crond.pid 
    11 [root@puppetclient run]# service crond status
    12 crond dead but subsys locked

    查看还是有该报错

    然后,尝试重启crontab

    1 [root@puppetclient run]# service crond restart
    2 Starting crond:                                            [  OK  ]
    3 [root@puppetclient run]# service crond status 
    4 crond (pid  6131) is running...
    5 [root@puppetclient run]# service crond stop
    6 Stopping crond:                                            [  OK  ]
    7 [root@puppetclient run]# service crond status
    8 crond is stopped

    解决方法

    建议先尝试重启下查看是否还有该报错

    如果还有的话 需要把进程文件删除掉

  • 相关阅读:
    (8)Normalization
    (7)Drop out/Drop block
    (6)data augmentation——遮挡
    (5)label smooth
    (4)Focal loss
    (3)data augmentation——pixel-wise
    ostringstream 性能测试
    CPU & 多线程
    PC 常备软件(windows)
    编译器前端简介
  • 原文地址:https://www.cnblogs.com/Gnnnny/p/7736557.html
Copyright © 2011-2022 走看看