add a restart service function, does not work yet, requires sudo priveleges for restartServices.php