From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109163 invoked by alias); 26 Sep 2016 19:47:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 109137 invoked by uid 89); 26 Sep 2016 19:47:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=H*MI:sk:0df3b6e, H*f:sk:0df3b6e, H*i:sk:0df3b6e, Hx-languages-length:1328 X-HELO: resqmta-po-08v.sys.comcast.net Received: from resqmta-po-08v.sys.comcast.net (HELO resqmta-po-08v.sys.comcast.net) (96.114.154.167) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Sep 2016 19:47:41 +0000 Received: from resomta-po-19v.sys.comcast.net ([96.114.154.243]) by resqmta-po-08v.sys.comcast.net with SMTP id obsJbsCOO2dNjobsJbsu9R; Mon, 26 Sep 2016 19:47:39 +0000 Received: from [IPv6:::1] ([IPv6:2601:646:8580:9390:d17b:9f92:95c8:aeb1]) by resomta-po-19v.sys.comcast.net with SMTP id obsIbcFAofNVEobsJbJDYA; Mon, 26 Sep 2016 19:47:39 +0000 Subject: Re: Setting up cygrunsrv after moving installation to another drive To: cygwin@cygwin.com References: <0df3b6e4-3435-7e51-58ad-31b4f9a4e4ff@SystematicSw.ab.ca> From: Ernie Rael Message-ID: <1bf0c23f-0f39-3f47-bb65-450ea8d20d9c@raelity.com> Date: Mon, 26 Sep 2016 20:09:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <0df3b6e4-3435-7e51-58ad-31b4f9a4e4ff@SystematicSw.ab.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfAcurBh3g5RUrcbWgj45Ba8ePocs4lI4NCmlYwUsr11lJIiyD1nWAjuaqEbRbM8/vyGCifNbulxQwoqYodC3IReFIuzTPCV5V15Idp4sMIMDXgI9zJHh zvMOUrTkYOUa5LjLDsOI9s0YmBbD64UrL2o= X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00337.txt.bz2 Thanks Brian, the Windows command to manipulate service configuration is exactly what I needed. -ernie On 9/25/2016 6:17 PM, Brian Inglis wrote: > On 2016-09-25 17:28, Ernie Rael wrote: >> I have just moved (robocopy) cygwin installation from C:/cygwin64 to >> F:/cygwin64 (win7). My stumbling block is handling cygrunsrv. >> >> For cygrunsrv, I thought I could change the service properties to >> start it from F:/..., but I can't figure out how to do that on Win7. >> >> Any suggestions on how best to get cygrunsrv going/installed after >> moving cygwin installation? > > $ sc qc cygserver > will show how the service is currently configured e.g. > > [SC] QueryServiceConfig SUCCESS > > SERVICE_NAME: cygserver > TYPE : 10 WIN32_OWN_PROCESS > START_TYPE : 2 AUTO_START (DELAYED) > ERROR_CONTROL : 1 NORMAL > BINARY_PATH_NAME : C:\cygwin64\bin\cygrunsrv.exe > LOAD_ORDER_GROUP : > TAG : 0 > DISPLAY_NAME : CYGWIN cygserver > DEPENDENCIES : > SERVICE_START_NAME : LocalSystem > > From an elevated prompt (run as Admin): > > $ sc config cygserver binPath= $(cygpath -w $(which cygrunsrv)) > > or the Windows equivalent from an elevated cmd prompt: > >> sc config cygserver binPath= F:\cygwin64\bin\cygrunsrv.exe > > IIRC the space after the = is required. > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple