Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch update cminfo command add service-info option in 130.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 4, 2022.

  1. eva2000

    eva2000 Administrator Staff Member

    59,474
    12,536
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,176
    Local Time:
    4:18 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update cminfo command add service-info option in 130.00beta01

    - add to cminfo command a service-info option to get a service's information in JSON config output i.e. cminfo service-info nginx
    - existing users would need to run cmupdate and run centmin.sh menu once and exit for the changes or wait for the cminfo_updater cronjob to run and update cminfo every 4hrs or manually run the update /usr/bin/cminfo_updater

    Continue reading...

    130.00beta01 branch

    Support Centmin Mod


    If you find Centmin Mod useful, please help support Centmin Mod

     
  2. eva2000

    eva2000 Administrator Staff Member

    59,474
    12,536
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,176
    Local Time:
    4:18 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    example output for nginx service info
    Code (Text):
    cminfo service-info nginx
    {
      "Names": "nginx.service",
      "Description": "Centmin Mod NGINX Server",
      "Type": "forking",
      "ActiveState": "active",
      "LoadState": "loaded",
      "SubState": "running",
      "Result": "success",
      "ExecMainStartTimestamp": "Mon 2022-10-03 10:17:19 CDT",
      "MainPID": "1837664",
      "DropInPaths": "/etc/systemd/system/nginx.service.d/failure-restart.conf /etc/systemd/system/nginx.service.d/openfileslimit.conf",
      "ExecStart": "{ path=/usr/local/sbin/nginx ; argv[]=/usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.conf ; ignore_errors=no ; start_time=[Mon 2022-10-03 10:17:19 CDT] ; stop_time=[Mon 2022-10-03 10:17:19 CDT] ; pid=1837663 ; code=exited ; status=0 }",
      "ExecStartPre": "{ path=/usr/local/sbin/nginx ; argv[]=/usr/local/sbin/nginx -t ; ignore_errors=no ; start_time=[Mon 2022-10-03 10:17:19 CDT] ; stop_time=[Mon 2022-10-03 10:17:19 CDT] ; pid=1837661 ; code=exited ; status=0 }",
      "ExecReload": "{ path=/bin/sh ; argv[]=/bin/sh -c /bin/kill -s HUP $(/bin/cat /usr/local/nginx/logs/nginx.pid) ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
      "ExecStop": "{ path=/bin/sh ; argv[]=/bin/sh -c /bin/kill -s TERM $(/bin/cat /usr/local/nginx/logs/nginx.pid) ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
      "PIDFile": "/usr/local/nginx/logs/nginx.pid",
      "LimitMEMLOCK": "65536",
      "LimitNOFILE": "1048576",
      "LimitNPROC": "63954",
      "After": "system.slice network-online.target nss-lookup.target basic.target systemd-journald.socket syslog.target remote-fs.target sysinit.target",
      "Before": "shutdown.target multi-user.target",
      "Conflicts": "shutdown.target",
      "FailureAction": "none",
      "FragmentPath": "/usr/lib/systemd/system/nginx.service",
      "NotifyAccess": "none",
      "PrivateNetwork": "no",
      "PrivateTmp": "no",
      "ProtectHome": "no",
      "ProtectSystem": "no",
      "Requires": "sysinit.target system.slice",
      "Restart": "on-failure",
      "RestartUSec": "5s",
      "StartLimitAction": "none",
      "StartLimitBurst": "5",
      "StartLimitIntervalUSec": "30s",
      "TimeoutStartUSec": "1min 30s",
      "TimeoutStopUSec": "1min 30s",
      "UnitFilePreset": "disabled",
      "UnitFileState": "enabled",
      "WantedBy": "multi-user.target",
      "Wants": "network-online.target"
    }