delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/11/15:49:30

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: Cygrunsrv starts service but reports that it didn't start
Date: Tue, 11 Apr 2006 14:48:24 -0500
Lines: 31
Message-ID: <e1h166$r3u$1@sea.gmane.org>
References: <86476431DFAE1A4A8496A9DCC4F3E8A65C6F3E AT kmmail1 DOT km DOT kobieloyalty>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5 (Windows/20051201)
In-Reply-To: <86476431DFAE1A4A8496A9DCC4F3E8A65C6F3E@kmmail1.km.kobieloyalty>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Jet Wilda wrote:
[snip]
> $ cygrunsrv -I samhain -d "CYGWIN samhain" -p /usr/local/sbin/samhain -a
> "-D" -e "CYGWIN=3Dntsec 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 --fo=
reground

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.
--=20
Ren=E9 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019