use case: Ubuntu 12.04 LTS using apache2
the code uses
sudo /etc/init.d/httpd stop
and
sudo /etc/init.d/httpd start
to stop & start the web server daemon. Ubuntu supports the service daemon and with an apache2 install the commands should be:
sudo service apache2 stop
and
sudo service apache2 start
the updater should detect which distro and version its running on and act accordingly
cat /etc/issue