[improvement] allow graceful-stop via the init.d script

Bug #912716 reported by Kingsquare
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Incomplete
Wishlist
Clint Byrum

Bug Description

The apache2ctl allows more options than the current service/init.d script..

I would like to the see graceful-stop option included into the init.d script aswell:

        graceful-stop)
                if ! $APACHE2CTL configtest > /dev/null 2>&1; then
                    $APACHE2CTL configtest || true
                    log_end_msg 1
                    exit 1
                fi
                log_daemon_msg "Reloading web server config" "apache2"
                if pidof_apache > /dev/null ; then
                    if $APACHE2CTL graceful-stop $2 ; then
                        log_end_msg 0
                    else
                        log_end_msg 1
                    fi
                fi
        ;;

I just copied and pasted the graceful handling into a simple graceful-stop (this might be made more elegant... but i'm no real *nix devver)

Dave Walker (davewalker)
Changed in apache2 (Ubuntu):
importance: Undecided → Wishlist
tags: added: bitesize
Revision history for this message
C de-Avillez (hggdh2) wrote :

Thank you for opening this bug and helping make Ubuntu better. This looks like bug 456381, which has been addressed for at least Maverick onwards.

Can you please identify your Apache version ('dpkg -l apache2' will show it).

Thank you.

Changed in apache2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This was in fact fixed in Maverick, via Debian, as of 2.2.14-6:

  * Add new init script action graceful-stop (LP: #456381)

Marking as duplicate.

Changed in apache2 (Ubuntu):
assignee: nobody → Clint Byrum (clint-fewbar)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.