Reputation: 77
I have created one sample demo windows service which is sending email after regular interval and one service fabric application with Guest executable where I am using this windows service (. exe ) as guest executable. I am using the batch file to install the service on node after service is launched & I have given path of batch file in set up entry point section i.e (Start up section) of service manifest file. After deployment of application , I am receiving error as "Unhealthy deployed application". My final aim is to install the guest executable (Windows service) on node of local service fabric cluster when service is launched or run.I do not understand how to do this as I think set up entry point executes the batch file before service code is launched.
Please kindly help me to resolve this.
Please refer attached screen shot for help.
Thanks
Upvotes: 0
Views: 504
Reputation: 9050
I don't think this is a good use case for Service Fabric as I understand it. If your goal is to install a Windows Service on a set of machines, that's not what Service Fabric is for. Windows Services and Service Fabric services work differently and serve different purposes.
Service Fabric launches and manages your EXE across a set of machines. It is for distributed applications.
A Windows Service runs and manages your EXE on a single machine. It is for running a background process on Windows.
Upvotes: 1