Ubuntu上的Apache2:我没有安装apachectl

我使用的是Ubuntu Server 9.04,我已经安装了Apache2。

我想重新启动我的Apache,但我只能重新启动它使用这个命令:

/etc/init.d/apache2 restart 

如果我没有错,它没有优雅的选项参数。

我没有安装这个命令:

 apachectl 

谢谢

更新

 sudo /etc/init.d/apache2 graceful * Usage: /etc/init.d/apache2 {start|stop|restart|reload|force-reload|start-htcacheclean|stop-htcacheclean|status} 

在Ubuntu上,apachectl是/usr/sbin/apache2ctl

/etc/init.d/apache2接受graceful参数。 reload参数也一样。 您可以使用:

 /etc/init.d/apache2 graceful 

要么

 /etc/init.d/apache2 reload 

gracefulparameter passing给apache2ctl

编辑:

它存在。 看看/etc/init.d/apache2源代码:

 graceful | reload | force-reload) 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 $2 ; then log_end_msg 0 else log_end_msg 1 fi fi ;;