From: Guus Sliepen Date: Sun, 10 Aug 2003 13:35:05 +0000 (+0000) Subject: Add a description for the Service control panel. X-Git-Tag: release-1.0.1~4 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=ae070b917066f612e9aba8611c7a5da88e19a51a Add a description for the Service control panel. --- diff --git a/src/process.c b/src/process.c index 1a8592d3..d08f70ff 100644 --- a/src/process.c +++ b/src/process.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: process.c,v 1.1.2.70 2003/08/08 22:45:46 guus Exp $ + $Id: process.c,v 1.1.2.71 2003/08/10 13:35:05 guus Exp $ */ #include "system.h" @@ -85,6 +85,7 @@ bool install_service(void) { char command[4096] = ""; char **argp; bool space; + SERVICE_DESCRIPTION description = {"Virtual Private Network daemon"}; manager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); if(!manager) { @@ -120,6 +121,8 @@ bool install_service(void) { return false; } + ChangeServiceConfig2(service, SERVICE_CONFIG_DESCRIPTION, &description); + logger(LOG_INFO, _("%s service installed"), identname); if(!StartService(service, 0, NULL))