]> git.meshlink.io Git - meshlink/commitdiff
Add a description for the Service control panel.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 10 Aug 2003 13:35:05 +0000 (13:35 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 10 Aug 2003 13:35:05 +0000 (13:35 +0000)
src/process.c

index 1a8592d3bed8bf8a828269acc605203e91c17e1a..d08f70ffd0a029ae525873ff74f996d90cd5ab6a 100644 (file)
@@ -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))