Earlier today I mentioned that I was playing with the IBM Really Small Message Broker (RSMB) and that’s working fine but then it occurred to me that having it on the desktop is not the smartest thing to do. Really it needs to be a service – however as that isn’t one of it’s options, I went off in search of ways to “make it so”.
This article describes how to make any program into a service and here is the binary to do just that. So basically I took their program wins-1.16-bin.exe and renamed it to mymqtt.exe as they suggested we give them meaningful names. I put it in the same directory as my RSMB. It needs an XML file (simple text file) of the same name to tell it what the name of the service will be – and where the executable will be. Here’s what I put in.
<name>Really Simple Message Broker</name>
<description>Really Simple Message Broker</description>
I then ran the following…
And LO – a service.
Ok, stop and uninstall don’t seem to work but I don’t really need that anyway – I CAN say for sure that the program starts up automatically on on power cycle without any visual interface – I suspect the stop argument is rubbish…