Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all I am very new for the Linux. I developed windows services and it is running on my Machine. Currently I am using Windows XP Service pack2 Operating System. ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    1

    Create Windows Services on Linux

    Hi all

    I am very new for the Linux. I developed windows services and it is running on my Machine. Currently I am using Windows XP Service pack2 Operating System. My requirement is how to execute the same windows service on Linux Machine. I installed Linux Version 2.6 on my machine. Please help me.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    Short version: Forget it.

    Long version: You cannot easily run programs designed and compiled for one operating system on another OS.

    Sure, there is wine .That may or may not let you start a windows program in linux, but even then the program might not run completely as expected.
    Also, wine is meant for desktop programs at most.
    I wouldnt even consider it as a way to provide servers (services).


    But, as you are the developer, and therefore have access to the source:
    Maybe you can write a native version?

    Beware: Depending on how complex that service is and how many platform depended code is in there, this might as well be a complete rewrite.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Nov 2010
    Posts
    61
    If you have the source, compile it for linux. Simples.

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    If it is .net based then you could have a look at mono (Main Page - Mono) but there may still be some re-development needed. And depending on the system calls, it may not work at all.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Location
    Bogotá, Colombia
    Posts
    39
    Quote Originally Posted by GreenSkyChris View Post
    If you have the source, compile it for linux. Simples.
    Yes, you could recompile it. And if it used to be a service, you might want to add some init.d scripts to start it automatically in your desired runlevel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...