The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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
     
  3. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    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
     
  5. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    16
    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,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
  7. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

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

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Do you mean the alternate exim port? The regular exim port cannot be changed.
     
  9. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page