This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygrunsrv starts service but reports that it didn't start
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Tue, 11 Apr 2006 14:48:24 -0500
- Subject: Re: Cygrunsrv starts service but reports that it didn't start
- Openpgp: url=hkp://random.sks.keyserver.penguin.de
- References: <86476431DFAE1A4A8496A9DCC4F3E8A65C6F3E@kmmail1.km.kobieloyalty>
Jet Wilda wrote:
[snip]
> $ cygrunsrv -I samhain -d "CYGWIN samhain" -p /usr/local/sbin/samhain -a
> "-D" -e "CYGWIN=ntsec tty"
[snip]
> The samhain log file just reports that it started and is why it isn't
> included. Does this have to do with the way samhain forks to become a
> daemon? If so how would I get it so that I can start and stop the
> service via the services panel or via cygrunsrv?
You have two choices:
cygrunsrv -I samhain -d "CYGWIN samhain" -p /usr/local/sbin/samhain -a --foreground
or see if it creates a .pid file and use
cygrunsrv -I samhain -d "CYGWIN samhain" -p /usr/local/sbin/samhain -a -D
-x /var/run/samhain.pid
where I used "/var/run/samhain.pid" as an example.
You'll have to check that all files and directories where the daemon writes or
creates files are usable by user SYSTEM which, unless you change it, is the user
who will be running the service.
--
René Berber
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/