From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45372 invoked by alias); 26 Sep 2016 01:17:30 -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 45361 invoked by uid 89); 26 Sep 2016 01:17:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.0 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*RU:64.59.134.12, Hx-spam-relays-external:64.59.134.12, sk:service, H*R:D*ca X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Sep 2016 01:17:29 +0000 Received: from [192.168.1.100] ([174.0.238.184]) by shaw.ca with SMTP id oKXubPAgXfI0aoKXvbGlkv; Sun, 25 Sep 2016 19:17:27 -0600 X-Authority-Analysis: v=2.2 cv=JOx5iICb c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=Z3hA1ZD5Ysxc6-KruC0A:9 a=QEXdDO2ut3YA:10 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: Setting up cygrunsrv after moving installation to another drive References: To: cygwin@cygwin.com From: Brian Inglis Message-ID: <0df3b6e4-3435-7e51-58ad-31b4f9a4e4ff@SystematicSw.ab.ca> Date: Mon, 26 Sep 2016 04:30:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfL5JGGQUUEj60FXLaU4P36yh/xlG4vRQ2KwpDf8upxgemJRq5p9d7Wg/6IiubDnySULuheq+iqGwv93qs5UvuCKqXlHWGLK6UNK4ZUe6/oau8lN0+ChE tp6TKvyLJ9Og9IvBWcfE6voln7FtfAazzK7WAD2ZPnBZImTBJ2cem+22uuK3ZGVkEz/fQZZON0+gYg== X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00331.txt.bz2 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. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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