From 59f71a707ebb92db1f3bd0e61407f3a4c7ec8a50 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 9 Jul 2013 10:38:00 -0400 Subject: [PATCH] service: start automatically on boot rename service from "pnfs client" to "NFSv4.1 Client" to match installer Signed-off-by: Casey Bodley --- daemon/service.c | 4 ++-- daemon/service.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon/service.c b/daemon/service.c index 5d98983..2b19668 100644 --- a/daemon/service.c +++ b/daemon/service.c @@ -367,9 +367,9 @@ void CmdInstallService() schSCManager, // SCManager database TEXT(SZSERVICENAME), // name of service TEXT(SZSERVICEDISPLAYNAME), // name to display - SERVICE_QUERY_STATUS, // desired access + SERVICE_QUERY_STATUS, // desired access SERVICE_WIN32_OWN_PROCESS, // service type - SERVICE_DEMAND_START, // start type + SERVICE_AUTO_START, // start type SERVICE_ERROR_NORMAL, // error control type szPath, // service's binary NULL, // no load ordering group diff --git a/daemon/service.h b/daemon/service.h index c8a2250..ab60e39 100644 --- a/daemon/service.h +++ b/daemon/service.h @@ -66,7 +66,7 @@ extern "C" { // internal name of the service #define SZSERVICENAME "pnfs" // displayed name of the service -#define SZSERVICEDISPLAYNAME "pnfs client" +#define SZSERVICEDISPLAYNAME "NFSv4.1 Client" // list of service dependencies - "dep1\0dep2\0\0" #define SZDEPENDENCIES "" //////////////////////////////////////////////////////////////////////////////