X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <4B33ADD4.2040103@tlinx.org> Date: Thu, 24 Dec 2009 10:07:16 -0800 From: Linda Walsh User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 ThunderBrowse/3.2.6.8 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: "cygwin AT cygwin DOT com" Subject: setup RFE: auto stop/restart of system-level cygrunsrv service et al. X-Stationery: 0.4.10 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Since it's not a user-level program that a user can easily just close a window on (and would have to bring up services to start/stop), would it be too much trouble to stop & restart cygrunsrv if it is the only program creating a file-busy condition (such as on replacying cygwin1.dll)? IMHO, some programs are 'system-level' (in a cygwin context) processes, and should be automatically stopped/restarted by cygwin if they are responsible for not being able to update a locked file. I don't know if thre are any other examples. I wouldn't consider a user shell, like 'bash' to be in the same class -- the user should be able to easily quit all visible user level processes. But 'system' level processes that auto start as services on start are generally invisible to the user and its those that I would like to see setup auto restart. Maybe not setup specifically -- but maybe the script that updates cygwin1.dll -- it could check for a list of system-level processes that would be subject to auto termination. Optionally -- like on windows, there could be an option to have setup automatically 'terminate' any processes that are keeping the file busy -- with a warning that unsaved work may be lost. But that would be a convenience on par with win7's automation. The system service stop & restart isn't something that users would be expected to do... on windows or on linux -- so I think cygwin should strive for the same behavior. Doable? Good idea? And please don't ask me to write the code, as I've never gotten anything to build and would be hard pressed to get it done at all, let alone in some reasonable time. ... Unless someone wants to 'hand hold' my setting up my computer to be able to build and create the packages needed for such a fix (my computer always seemed to be missing required bits and pieces...). I could setup the build tree on linux or my winbox. Both are about the same power/speed these days, though both are running 64-bit. Maybe setup could become a 64-bit/32-bit dual package? Truly, I know resources are tight, but I'm going to bet that most Win7 users will be using 64-bit before another verion of windows comes out. Memory is fairly inexpensive now -- at around ~$133/4GB(1x4GB). That be about $60-$80 in ~18 months, so people will strongly be tempted to get more than 1 of those and 64-bit OS's will become defacto at that point. Additionally, a large number of computers (if not most) are sold with maxed out memory for the 32-bit memspace. So users are already pushing at the 32-bit limits. It won't take long for them to want to want more. Anyway -- starting/stopping Cygwin services? (maybe sshd as well or any other chkconfig/rc controlled services?)... -linda -- 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