Skip to main content

chkserv.d mutiple commands per service???

Comments

5 comments

  • kernow
    Instead of "reload" try restart: /etc/init.d/memcached restart
    Mysql is extremely stable usually, so you should try to figure out why its crashing. Check you logs.
    0
  • x-man
    reload command working fine but look like chkserv simple stop with first command (mysql restart) if mysql start to work... I need this because mysql sometimes crashing because on backup TOTAL RAM usage go up from <20GB to over 30GB and mysql process virutal mem usage go up to 25GB+ from ~10GB, I still checking why, in my.cnf I have set total maximum memory usage ~20GB, result from tuning-primer.sh: MEMORY USAGE Max Memory Ever Allocated : 9.87 G Configured Max Per-thread Buffers : 10.35 G Configured Max Global Buffers : 9.51 G Configured Max Memory Limit : 19.86 G Physical Memory : 31.32 G
    0
  • cPanelMichael
    I recommend resolving the issue that is causing MySQL to fail that often. You may want to post on our Optimization forums for assistance with troubleshooting the MySQL failures. Thank you.
    0
  • x-man
    Yes, I need to fix it but also I need option to execute multiple commands per service in chkserv.d, is that possible? On every mysql restart/start I need to reload memcached, is that possible? Thanks.
    0
  • cPanelMichael
    You could try using the "&" symbol rather than a comma when adding the additional command. EX: /usr/local/cpanel/scripts/restartsrv_mysql & /etc/init.d/memcached reload
    Or, you could manually edit "/usr/local/cpanel/scripts/restartsrv_mysql" to reload memcached. Thank you.
    0

Please sign in to leave a comment.