PeterTaps
October 7th, 2016, 07:12 AM
Environment: Ubuntu 16.04
It appears there are multiple ways to restart apache2
$ sudo /etc/init.d/apache2 restart
$ sudo systemctl restart apache2
$ sudo service apache2 restart
They all seem to work. However, I am wondering if there is a recommended way to restart apache2 (or any other daemon I guess).
Thank you in advance for your help.
Regards,
Peter
It appears there are multiple ways to restart apache2
$ sudo /etc/init.d/apache2 restart
$ sudo systemctl restart apache2
$ sudo service apache2 restart
They all seem to work. However, I am wondering if there is a recommended way to restart apache2 (or any other daemon I guess).
Thank you in advance for your help.
Regards,
Peter