Add stopping and starting of listeners to maxadmin

Listeners can now be stopped and started individually.
This commit is contained in:
Markus Makela
2016-11-28 16:04:51 +02:00
parent ecdeb009b3
commit 4ff4e69592
3 changed files with 85 additions and 7 deletions

View File

@ -225,6 +225,15 @@ bool serviceLaunchListener(SERVICE *service, SERV_LISTENER *port);
*/
bool serviceStopListener(SERVICE *service, const char *name);
/**
* @brief Restart a stopped listener
*
* @param service Service where the listener is linked
* @param name Name of the listener
* @return True if listener was restarted
*/
bool serviceStartListener(SERVICE *service, const char *name);
/**
* Utility functions
*/