Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-154

Systemctl can't manage httpd24's service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • httpd 2.4.23 SP1 DR2
    • httpd 2.4.6 GA
    • httpd, rpm
    • None
    • Hide

      1) Install httpd24

      # yum install httpd24
      

      2) Start httpd with the wrapper

      # /usr/sbin/httpd24 -k start
      

      3) Observe the error with the status command

      # service httpd24 status
      Redirecting to /bin/systemctl status  httpd24.service
      ● httpd24.service - The Apache HTTP Server
         Loaded: loaded (/usr/lib/systemd/system/httpd24.service; disabled; vendor preset: disabled)
         Active: failed (Result: exit-code) since Tue 2015-11-17 05:53:43 EST; 4h 25min ago
        Process: 13372 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE)
        Process: 13370 ExecStart=/usr/sbin/httpd24 $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS)
       Main PID: 13370 (code=exited, status=0/SUCCESS)
      
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -p, --pid              print pids without signaling them
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -l, --list [=<signal>] list signal names, or convert one to a name
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -L, --table            list signal names and numbers
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -h, --help     display this help and exit
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -V, --version  output version information and exit
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: For more details see kill(1).
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com systemd[1]: httpd24.service: control process exited, code=exited status=1
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com systemd[1]: Failed to start The Apache HTTP Server.
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com systemd[1]: Unit httpd24.service entered failed state.
      Nov 17 05:53:43 dhcp-144-101.gva.redhat.com systemd[1]: httpd24.service failed.
      
      Show
      1) Install httpd24 # yum install httpd24 2) Start httpd with the wrapper # /usr/sbin/httpd24 -k start 3) Observe the error with the status command # service httpd24 status Redirecting to /bin/systemctl status httpd24.service ● httpd24.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd24.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2015-11-17 05:53:43 EST; 4h 25min ago Process: 13372 ExecStop=/bin/kill -WINCH $MAINPID (code=exited, status=1/FAILURE) Process: 13370 ExecStart=/usr/sbin/httpd24 $OPTIONS -DFOREGROUND (code=exited, status=0/SUCCESS) Main PID: 13370 (code=exited, status=0/SUCCESS) Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -p, --pid print pids without signaling them Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -l, --list [=<signal>] list signal names, or convert one to a name Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -L, --table list signal names and numbers Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -h, --help display this help and exit Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: -V, --version output version information and exit Nov 17 05:53:43 dhcp-144-101.gva.redhat.com kill[13372]: For more details see kill(1). Nov 17 05:53:43 dhcp-144-101.gva.redhat.com systemd[1]: httpd24.service: control process exited, code=exited status=1 Nov 17 05:53:43 dhcp-144-101.gva.redhat.com systemd[1]: Failed to start The Apache HTTP Server. Nov 17 05:53:43 dhcp-144-101.gva.redhat.com systemd[1]: Unit httpd24.service entered failed state. Nov 17 05:53:43 dhcp-144-101.gva.redhat.com systemd[1]: httpd24.service failed.

    Description

      systemctl can't manage the httpd24 service, because it doesn't find the good PID. the variable 'MAINPID' used by the service doesn't contain the good value and crash while systemctl do the kill on it.

      Attachments

        Issue Links

          Activity

            People

              gzaronik@redhat.com George Zaronikas
              mgottbur Michael Gottburg (Inactive)
              Jan Onderka Jan Onderka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: