This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi, I have the program samhain (http://la-samhna.de/samhain/index.html) installed and it runs. So now I'm trying to get it setup as a service that will start on startup. Here is what I've done: $ cygrunsrv -I samhain -d "CYGWIN samhain" -p /usr/local/sbin/samhain -a "-D" -e "CYGWIN=ntsec tty" Listing the services shows $ cygrunsrv -LV Service : sshd Display name : CYGWIN sshd Current State : Running Controls Accepted : Stop Command : /usr/sbin/sshd -D stdin path : /dev/null stderr path : /var/log/sshd.log Environment : CYGWIN="ntsec tty" Process Type : Own Process Startup : Automatic Account : LocalSystem Service : samhain Display name : CYGWIN samhain Current State : Stopped Command : /usr/local/sbin/samhain -D stdin path : /dev/null stdout path : /var/log/samhain.log stderr path : /var/log/samhain.log Environment : CYGWIN="ntsec tty" Process Type : Own Process Startup : Automatic Account : LocalSystem However when I try to start it I get: $ cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. But the service is started: $ ps -efW UID PID PPID TTY STIME COMMAND 0 8 0 ? 15:24:48 *** unknown *** 0 204 0 ? 14:14:48 \SystemRoot\System32\smss.exe 0 228 0 ? 14:15:02 \??\C:\WINNT\system32\winlogon.exe 0 284 0 ? 14:15:04 C:\WINNT\system32\services.exe 0 296 0 ? 14:15:04 C:\WINNT\system32\lsass.exe 0 400 0 ? 14:15:06 C:\WINNT\System32\termsrv.exe 0 488 0 ? 14:15:08 C:\WINNT\system32\svchost.exe 0 532 0 ? 14:15:09 C:\WINNT\system32\spoolsv.exe 0 560 0 ? 14:15:09 C:\WINNT\system32\netdde.exe 0 604 0 ? 14:15:10 C:\WINNT\system32\cisvc.exe 0 616 0 ? 14:15:10 C:\Program Files\Sterling Commerce\Connect Direct v4.2.00\Server\CDNT.exe 0 640 0 ? 14:15:12 C:\WINNT\system32\svchost.exe 0 656 0 ? 14:15:13 C:\WINNT\System32\evtsys.exe 0 684 0 ? 14:15:13 C:\WINNT\System32\llssrv.exe 0 732 0 ? 14:15:14 C:\WINNT\system32\regsvc.exe 0 784 0 ? 14:15:14 C:\WINNT\system32\locator.exe 0 796 0 ? 14:15:14 C:\WINNT\system32\MSTask.exe 0 832 0 ? 14:15:15 C:\WINNT\system32\tcpsvcs.exe 0 880 0 ? 14:15:15 C:\cygwin\bin\cygrunsrv.exe 0 932 0 ? 14:15:17 C:\WINNT\System32\svchost.exe 0 956 0 ? 14:15:17 C:\WINNT\System32\WBEM\WinMgmt.exe 0 992 0 ? 14:15:17 C:\cygwin\usr\sbin\sshd.exe 0 1016 0 ? 14:15:18 C:\WINNT\System32\wins.exe 0 1040 0 ? 14:15:18 C:\WINNT\system32\svchost.exe 0 1056 0 ? 14:15:18 C:\WINNT\system32\Dfssvc.exe 0 1092 0 ? 14:15:19 C:\WINNT\System32\dmadmin.exe 0 776 0 ? 14:22:18 C:\WINNT\system32\cidaemon.exe 0 1372 0 ? 14:27:10 \??\C:\WINNT\system32\winlogon.exe 0 1480 0 ? 14:27:19 C:\WINNT\system32\rdpclip.exe 0 1428 0 ? 14:27:19 C:\WINNT\Explorer.EXE 0 1632 0 ? 14:27:23 C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe 0 1440 0 ? 14:30:16 C:\WINNT\system32\logon.scr 0 1640 0 ? 14:33:31 C:\WINNT\system32\cmd.exe kadmin1 1648 1 0 14:33:30 /usr/bin/bash 0 1660 0 ? 14:38:38 C:\cygwin\usr\local\sbin\samhain.exe kadmin1 644 1648 0 14:40:00 /usr/bin/ps Notice C:\cygwin\usr\local\sbin\samhain.exe is running. I have verified that it is reporting stuff back to the monitoring server as well. The cygrunsrv doesn't think it started though and here is what is in the event log: Event Type: Information Event Source: samhain Event Category: None Event ID: 0 Date: 4/11/2006 Time: 2:38:37 PM User: NT AUTHORITY\SYSTEM Computer: PRCD1 Description: The description for Event ID ( 0 ) in Source ( samhain ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: samhain : PID 1492 : `samhain' service started. Event Type: Information Event Source: samhain Event Category: None Event ID: 0 Date: 4/11/2006 Time: 2:38:38 PM User: NT AUTHORITY\SYSTEM Computer: PRCD1 Description: The description for Event ID ( 0 ) in Source ( samhain ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: samhain : PID 1492 : `samhain' service stopped, exit status: 0. 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? TIA Jet
Attachment:
cygcheck.out
Description: cygcheck.out
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |