Results 1 to 2 of 2

Thread: systemd issue after upgrade - httpd.service ( systemd service start timeout )

  1. #1
    Join Date
    Apr 2009
    Location
    Wien / Vienna - Austria
    Posts
    28

    Exclamation systemd issue after upgrade - httpd.service ( systemd service start timeout )

    Hi,

    I had an issue with httpd.service after upgrading to apache 2.4.23

    Code:
    -apache2.4:2.4.20:e725c268624737a163dc844e28f720d1
    +apache2.4:2.4.23:b711ea7d8b75dc8bfdf5a5d7e5253088
    the httpd.service stuck in "activating"-state and failed failed due to a timeout after about 90seconds

    i noticed absurd behaviour and in the end even a hang in systemd and had to reboot .. anyway

    For anyone find the following useful - i bring the final results:

    the httpd.service template changed during the apache-upgrade .. i had to customize the /usr/local/directadmin/custombuild/custom/systemd/httpd.service -file to end the tragedy

    Code:
    # httpd binary startup for DirectAdmin servers
    # To specify environment options, please use 
    # environment line in [Service] like:
    #	[Service]
    #	Environment=OPTIONS=-DMY_DEFINE
    
    # To reload systemd daemon after changes to this file:
    # systemctl --system daemon-reload
    
    [Unit]
    Description=The Apache HTTP Server
    After=network.target remote-fs.target nss-lookup.target
    
    [Service]
    Type=forking
    Environment=LANG=C
    
    ExecStartPre=/bin/bash -c "for i in `/usr/bin/ipcs -s | /usr/bin/awk '/apache/ {print     $2}'`; do /usr/bin/ipcrm -s $i; done"
    ExecStart=/usr/sbin/apachectl start
    ExecReload=/usr/sbin/apachectl graceful
    ExecStop=/usr/sbin/apachectl stop
    # We want systemd to give httpd some time to finish gracefully, but still want
    # it to kill httpd after TimeoutStopSec if something went wrong during the
    # graceful stop. Normally, Systemd sends SIGTERM signal right after the
    # ExecStop, which would kill httpd. We are sending useless SIGCONT here to give
    # httpd time to finish.
    KillSignal=SIGCONT
    TimeoutStopSec=7s
    PrivateTmp=true
    
    LimitMEMLOCK=infinity
    LimitNOFILE=65535
    
    [Install]
    WantedBy=multi-user.target


    deal:

    Code:
    systemctl daemon-reload


    .p
    Last edited by shanti; 07-06-2016 at 05:54 PM. Reason: typo
    diggin linux since 1998 . . .

  2. #2
    Join Date
    Feb 2009
    Location
    Sevastopol/Crimea
    Posts
    19
    Hello! See here - https://forum.directadmin.com/showth...089#post274089 workaround for apache 2.4.23
    Last edited by zl0y; 07-07-2016 at 10:38 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •