Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-274

Systemctl can't manage httpd24's service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • JWS 3.1.0 GA
    • JWS 3.0.2 ER1
    • httpd
    • None
    • moved to JBCS (JBCS-154)
    • Documented as Known Issue
    • Hide

      download & install httpd24 from rpm
      launch it with /usr/sbin/httpd24 -k start
      see the error with the command "service httpd24 status"

      Error:
      [root@dhcp-144-101 etc]# 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
      download & install httpd24 from rpm launch it with /usr/sbin/httpd24 -k start see the error with the command "service httpd24 status" Error: [root@dhcp-144-101 etc] # 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.

      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.

            weli@redhat.com Weinan Li
            mgottbur Michael Gottburg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: