Running a Windows .exe service on Ubuntu (with Mono?) [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite
1












I have a service that was coded that I need to move over to linux. Got the code and got it up and running as a .exe on windows to start using installutil.



However quite unsure how to get it working on ubuntu. From what I researched I needed mono, so I downloaded the complete mono and transferred my files over to my linux machine. I tried to run the service with the following command: mono-service myservice.exe (I am in the same directory as it). and it just seems like it didn't do anything. No error, no message, just went to a new prompt. It did create a PID but no service.



Checked my list of services and it was not there.



Is there a way to get this .exe running on start up (or at all even). Can't find any good example of init.d for exe files if that is what is required. Perhaps I am missing an important step. Any ideas?



Note: This got posted a duplicated to how to install a process. I am not trying to do that, I am trying to run it as a service. Which to my knowledge is not the same thing.



Version is 16.04







share|improve this question













closed as too broad by waltinator, user535733, Eric Carvalho, Amith KK, muru Jun 12 at 7:54


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • Everyone who is voting to close this question, it is not "too broad," nor is it a duplicate of how to install windows software. C# applications can be run on both Linux and Windows depending on how they are developed. This question is specifically about how to run such an application that is designed to run as a service, on Ubuntu, similar to how it is done on Windows. It is perfectly on topic and a straight forward question.
    – dobey
    Jun 6 at 17:42






  • 1




    @DavidFoerster I do not believe that is the case. I can already run the process, it has a PID when I run it, it just does not get listed as a service. Hence the question of how to list it as a service.
    – Lain
    Jun 6 at 17:51










  • @DavidFoerster edited. Its 16.04
    – Lain
    Jun 6 at 17:55










  • In that case you only need to create a systemd unit for your service. I couldn't find a comprehensive Q&A on Ask Ubuntu but on Unix & Linux there's How to write startup script for systemd?
    – David Foerster
    Jun 6 at 18:25






  • 1




    On Unix-like systems services are (usually) managed by the init system which defaults to systemd on Ubuntu Xenial and its successors for the forseeable future. If you want to set up a service that you can manage through the init system you'll need to write systemd units sooner or later. As often there are other options but they're either outdated/deprecated or (likely horrible) homebrew cludges and/or don't deserve the name "service". I see nothing of relevance that is specific to graphics in the linked Q&A.
    – David Foerster
    Jun 6 at 19:40















up vote
2
down vote

favorite
1












I have a service that was coded that I need to move over to linux. Got the code and got it up and running as a .exe on windows to start using installutil.



However quite unsure how to get it working on ubuntu. From what I researched I needed mono, so I downloaded the complete mono and transferred my files over to my linux machine. I tried to run the service with the following command: mono-service myservice.exe (I am in the same directory as it). and it just seems like it didn't do anything. No error, no message, just went to a new prompt. It did create a PID but no service.



Checked my list of services and it was not there.



Is there a way to get this .exe running on start up (or at all even). Can't find any good example of init.d for exe files if that is what is required. Perhaps I am missing an important step. Any ideas?



Note: This got posted a duplicated to how to install a process. I am not trying to do that, I am trying to run it as a service. Which to my knowledge is not the same thing.



Version is 16.04







share|improve this question













closed as too broad by waltinator, user535733, Eric Carvalho, Amith KK, muru Jun 12 at 7:54


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • Everyone who is voting to close this question, it is not "too broad," nor is it a duplicate of how to install windows software. C# applications can be run on both Linux and Windows depending on how they are developed. This question is specifically about how to run such an application that is designed to run as a service, on Ubuntu, similar to how it is done on Windows. It is perfectly on topic and a straight forward question.
    – dobey
    Jun 6 at 17:42






  • 1




    @DavidFoerster I do not believe that is the case. I can already run the process, it has a PID when I run it, it just does not get listed as a service. Hence the question of how to list it as a service.
    – Lain
    Jun 6 at 17:51










  • @DavidFoerster edited. Its 16.04
    – Lain
    Jun 6 at 17:55










  • In that case you only need to create a systemd unit for your service. I couldn't find a comprehensive Q&A on Ask Ubuntu but on Unix & Linux there's How to write startup script for systemd?
    – David Foerster
    Jun 6 at 18:25






  • 1




    On Unix-like systems services are (usually) managed by the init system which defaults to systemd on Ubuntu Xenial and its successors for the forseeable future. If you want to set up a service that you can manage through the init system you'll need to write systemd units sooner or later. As often there are other options but they're either outdated/deprecated or (likely horrible) homebrew cludges and/or don't deserve the name "service". I see nothing of relevance that is specific to graphics in the linked Q&A.
    – David Foerster
    Jun 6 at 19:40













up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I have a service that was coded that I need to move over to linux. Got the code and got it up and running as a .exe on windows to start using installutil.



However quite unsure how to get it working on ubuntu. From what I researched I needed mono, so I downloaded the complete mono and transferred my files over to my linux machine. I tried to run the service with the following command: mono-service myservice.exe (I am in the same directory as it). and it just seems like it didn't do anything. No error, no message, just went to a new prompt. It did create a PID but no service.



Checked my list of services and it was not there.



Is there a way to get this .exe running on start up (or at all even). Can't find any good example of init.d for exe files if that is what is required. Perhaps I am missing an important step. Any ideas?



Note: This got posted a duplicated to how to install a process. I am not trying to do that, I am trying to run it as a service. Which to my knowledge is not the same thing.



Version is 16.04







share|improve this question













I have a service that was coded that I need to move over to linux. Got the code and got it up and running as a .exe on windows to start using installutil.



However quite unsure how to get it working on ubuntu. From what I researched I needed mono, so I downloaded the complete mono and transferred my files over to my linux machine. I tried to run the service with the following command: mono-service myservice.exe (I am in the same directory as it). and it just seems like it didn't do anything. No error, no message, just went to a new prompt. It did create a PID but no service.



Checked my list of services and it was not there.



Is there a way to get this .exe running on start up (or at all even). Can't find any good example of init.d for exe files if that is what is required. Perhaps I am missing an important step. Any ideas?



Note: This got posted a duplicated to how to install a process. I am not trying to do that, I am trying to run it as a service. Which to my knowledge is not the same thing.



Version is 16.04









share|improve this question












share|improve this question




share|improve this question








edited Jun 6 at 17:57









David Foerster

25.7k1361105




25.7k1361105









asked Jun 6 at 14:41









Lain

1114




1114




closed as too broad by waltinator, user535733, Eric Carvalho, Amith KK, muru Jun 12 at 7:54


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as too broad by waltinator, user535733, Eric Carvalho, Amith KK, muru Jun 12 at 7:54


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • Everyone who is voting to close this question, it is not "too broad," nor is it a duplicate of how to install windows software. C# applications can be run on both Linux and Windows depending on how they are developed. This question is specifically about how to run such an application that is designed to run as a service, on Ubuntu, similar to how it is done on Windows. It is perfectly on topic and a straight forward question.
    – dobey
    Jun 6 at 17:42






  • 1




    @DavidFoerster I do not believe that is the case. I can already run the process, it has a PID when I run it, it just does not get listed as a service. Hence the question of how to list it as a service.
    – Lain
    Jun 6 at 17:51










  • @DavidFoerster edited. Its 16.04
    – Lain
    Jun 6 at 17:55










  • In that case you only need to create a systemd unit for your service. I couldn't find a comprehensive Q&A on Ask Ubuntu but on Unix & Linux there's How to write startup script for systemd?
    – David Foerster
    Jun 6 at 18:25






  • 1




    On Unix-like systems services are (usually) managed by the init system which defaults to systemd on Ubuntu Xenial and its successors for the forseeable future. If you want to set up a service that you can manage through the init system you'll need to write systemd units sooner or later. As often there are other options but they're either outdated/deprecated or (likely horrible) homebrew cludges and/or don't deserve the name "service". I see nothing of relevance that is specific to graphics in the linked Q&A.
    – David Foerster
    Jun 6 at 19:40

















  • Everyone who is voting to close this question, it is not "too broad," nor is it a duplicate of how to install windows software. C# applications can be run on both Linux and Windows depending on how they are developed. This question is specifically about how to run such an application that is designed to run as a service, on Ubuntu, similar to how it is done on Windows. It is perfectly on topic and a straight forward question.
    – dobey
    Jun 6 at 17:42






  • 1




    @DavidFoerster I do not believe that is the case. I can already run the process, it has a PID when I run it, it just does not get listed as a service. Hence the question of how to list it as a service.
    – Lain
    Jun 6 at 17:51










  • @DavidFoerster edited. Its 16.04
    – Lain
    Jun 6 at 17:55










  • In that case you only need to create a systemd unit for your service. I couldn't find a comprehensive Q&A on Ask Ubuntu but on Unix & Linux there's How to write startup script for systemd?
    – David Foerster
    Jun 6 at 18:25






  • 1




    On Unix-like systems services are (usually) managed by the init system which defaults to systemd on Ubuntu Xenial and its successors for the forseeable future. If you want to set up a service that you can manage through the init system you'll need to write systemd units sooner or later. As often there are other options but they're either outdated/deprecated or (likely horrible) homebrew cludges and/or don't deserve the name "service". I see nothing of relevance that is specific to graphics in the linked Q&A.
    – David Foerster
    Jun 6 at 19:40
















Everyone who is voting to close this question, it is not "too broad," nor is it a duplicate of how to install windows software. C# applications can be run on both Linux and Windows depending on how they are developed. This question is specifically about how to run such an application that is designed to run as a service, on Ubuntu, similar to how it is done on Windows. It is perfectly on topic and a straight forward question.
– dobey
Jun 6 at 17:42




Everyone who is voting to close this question, it is not "too broad," nor is it a duplicate of how to install windows software. C# applications can be run on both Linux and Windows depending on how they are developed. This question is specifically about how to run such an application that is designed to run as a service, on Ubuntu, similar to how it is done on Windows. It is perfectly on topic and a straight forward question.
– dobey
Jun 6 at 17:42




1




1




@DavidFoerster I do not believe that is the case. I can already run the process, it has a PID when I run it, it just does not get listed as a service. Hence the question of how to list it as a service.
– Lain
Jun 6 at 17:51




@DavidFoerster I do not believe that is the case. I can already run the process, it has a PID when I run it, it just does not get listed as a service. Hence the question of how to list it as a service.
– Lain
Jun 6 at 17:51












@DavidFoerster edited. Its 16.04
– Lain
Jun 6 at 17:55




@DavidFoerster edited. Its 16.04
– Lain
Jun 6 at 17:55












In that case you only need to create a systemd unit for your service. I couldn't find a comprehensive Q&A on Ask Ubuntu but on Unix & Linux there's How to write startup script for systemd?
– David Foerster
Jun 6 at 18:25




In that case you only need to create a systemd unit for your service. I couldn't find a comprehensive Q&A on Ask Ubuntu but on Unix & Linux there's How to write startup script for systemd?
– David Foerster
Jun 6 at 18:25




1




1




On Unix-like systems services are (usually) managed by the init system which defaults to systemd on Ubuntu Xenial and its successors for the forseeable future. If you want to set up a service that you can manage through the init system you'll need to write systemd units sooner or later. As often there are other options but they're either outdated/deprecated or (likely horrible) homebrew cludges and/or don't deserve the name "service". I see nothing of relevance that is specific to graphics in the linked Q&A.
– David Foerster
Jun 6 at 19:40





On Unix-like systems services are (usually) managed by the init system which defaults to systemd on Ubuntu Xenial and its successors for the forseeable future. If you want to set up a service that you can manage through the init system you'll need to write systemd units sooner or later. As often there are other options but they're either outdated/deprecated or (likely horrible) homebrew cludges and/or don't deserve the name "service". I see nothing of relevance that is specific to graphics in the linked Q&A.
– David Foerster
Jun 6 at 19:40
















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491