Menu

Can't run as service

exjobb2007
2007-03-23
2013-04-11
  • exjobb2007

    exjobb2007 - 2007-03-23

    Hello,

    Syslog2ODBC works very well when run from a console however i cannot run it as a service as it immediatly exits, the event log says "The Syslog2ODBC has reported an invalid current state 0." .

    Now I already tried to run it as the local admin instead of LocalSystem, but that doesn't change anything...

    I'm logging the data to a MsSQL 2005 server.

    Any ideas are welcome :)

    Bye

     
    • BlakeB

      BlakeB - 2007-05-03

      I am having the same issue.  I can run the application in console mode and everything seems to work, but when I run it as a service, it automatically stops after a few seconds and the event log reads:
      "The Syslog2ODBC has reported an invalid current state 0."

      Please let me know if anyone has a fix for this.

      Best regards
      Blake

       
    • Pier Carlo CHIODI

      Hi,

      can you tell me what OS are you using?

      Can you try to enable verbose logging to file and then send me te logs?
      You can do this by editing syslog2odbc.ini file:

      [Logging]
      LogToFile=1
      LogFilePath=C:\SysLog2ODBC.log
      MinSeverity=7

      Regards,

      Pierky

       
    • exjobb

      exjobb - 2007-05-09

      hi i am exjobb2007, i forgot my old passwd...

      OS is Microsoft Windows Server 2003.

      We never resolved this issue, so we created a service out of the console mode, with srvany in the Microsoft Resource Kit. It basically just transform any program into a service.

      Here's a short howto...
      <HOW TO>
      download and install http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

      open cmd.exe and run C:\PROGRA~1\WINDOW~4\Tools\instsrv Syslog_Server C:\PROGRA~1\WINDOW~\Tools\srvany.exe

      open regedit go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Syslog_server

      Right clock on syslog_server and select new->key. right click on the new key and choose rename, rename it to "Paramters".
      Under Parameters, create a "string value" with  the name Application and value "C:\PROGRA~1\Syslog2ODBC-0.4\Syslog2ODBC.exe" (depends where you installed it)
      Create another "string value", named AppParamters and with the values "-c"

      You now have a new service :)

      </HOW TO>

      Hope this helps

      Ugly, but it works like a charm ever since :P well not exactly but i'll post that in a new thread

      thank you for your attention :)

       

Log in to post a comment.