This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cygrunsrv doesn't stop service during reboot
- From: Frank Fesevur <ffes at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 20 Feb 2012 11:56:07 +0100
- Subject: cygrunsrv doesn't stop service during reboot
- Authentication-results: mr.google.com; spf=pass (google.com: domain of fesevur@gmail.com designates 10.220.108.70 as permitted sender) smtp.mail=fesevur@gmail.com; dkim=pass header.i=fesevur@gmail.com
Hi,
I have a annoying problem with rsyncd running as a service using
cygsunsrv. When I reboot the server running Win2008R2 the service is
not properly stopped. Therefore the .pid file stays in /var/run and
when the server starts again, the rsync daemon not started because it
finds a .pid file.
When I manually stop the service (net stop rsyncd) it works as
expected. We don't have this problem on our Win2003 server. The
cygrunsrv command is the same on both servers: cygrunsrv -I rsyncd -d
"CYGWIN rsyncd" -f "Rsync file transfer daemon" -p /bin/rsync.exe -a
"--daemon --no-detach" -O
The reboot is done with a schedule task running the windows native
shutdown command: "shutdown -r -f -t 0"
Do I overlook something? Are other people having similar problem with
cygrunsrv with win2008R2? Do you need more information? If so, how can
I use cygcheck with a service?
Regards,
Frank
--
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