Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Where are the settings for the service manager confirguation stored?

Discussion in 'General Discussion' started by BianchiDude, Jan 19, 2012.

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    166
    Where are the settings for the service manager confirguation stored?

    If I want to change those by edtting the file, rather than in WHM.

    TIA
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    They are located in /var/cpanel/cpanel.config file and you would need to issue the following command after editing the file:

    Code:
    /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    166
    I'm not seeing the settings I'm looking for in there, is that file used for both tweak settings and the service manager?
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Ah, sorry, I picked the wrong file. For some reason I thought you'd asked about WHM's Tweak Settings.

    Service Manager uses /etc/chkserv.d/chkservd.conf file for the services to load and requires individual entries in /etc/chkserv.d folder for the service. An example one would be the sshd file at /etc/chkserv.d/sshd location:

    Code:
    root@host [/etc/chkserv.d]# cat sshd 
    service[sshd]=x,x,x,/usr/local/cpanel/scripts/restartsrv_sshd,sshd,root
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    166
    Thanks!

    So edit that file then restart the individual service or cpanel, or both?
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    166
    I'm trying to change the exim port automatically
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you mean the alternate exim port? The regular exim port cannot be changed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    166
    Yes, the alternate port
     
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    This file is stored at:

    Code:
    /etc/chkserv.d/exim-#
    You would replace "#" with the number of the port. Let's say you wanted to create the service for Exim on port 26 through the command line. You would follow the steps that Tristan mentioned in:

    Monitoring Service Chkservd

    You would of course change the name of the file and the content of the file. The name of the file would be "exim-#". The content of "/etc/chkserv.d/exim-#" would be:

    Code:
    service[exim-#]=#,QUIT,220,/usr/local/cpanel/scripts/restartsrv_exim
    Again, replacing "#" with the number of the port.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice