Running a Windows .exe service on Ubuntu (with Mono?) [closed]
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
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
16.04 services mono init init.d
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.
 |Â
show 3 more comments
up vote
2
down vote
favorite
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
16.04 services mono init init.d
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
 |Â
show 3 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
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
16.04 services mono init init.d
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
16.04 services mono init init.d
edited Jun 6 at 17:57
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
![](https://i.stack.imgur.com/E0SEH.png?s=32&g=1)
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
 |Â
show 3 more comments
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
 |Â
show 3 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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