Appendix C. Running NetKernel as a Service
Doing stuff as a service is very hot these days. I, for one, do not have my head in the clouds. You’ll find some decent information about Naas (note the lowercase s) in this appendix.
Cover Story
For servers, the following is expected behaviour, but imagine this: You get up in the morning, boot your home desktop or laptop[38] and NetKernel is automatically started. Bliss!
As you probably know, attaining the state of bliss is not one of the lighter matters. However, Peter Rodgers has provided all that you require to run NetKernel as a service (on your server or on your home desktop) in the NetKernel forums.
If you feel comfortable with the instructions mentioned in that post, by all means follow them and ignore the rest of this Appendix. There’s going to be slightly more detail in the procedure below. There are also going to be platform-specific instructions.
Note
I only vouch for the platforms on which I tested the procedures. At this time, those are Windows 7 and Ubuntu 10.04 LTS—the Lucid Lynx. That means they will probably work on most current Windows platforms and Linux platforms.
Procedure Windows 7
Creating your own service on Windows is not one of the lighter matters. Here is the walk-through.
Download Java Service Wrapper
Being raised on Linux, I find this ridiculous. When I want something started at boot time, a simple script and a couple of links do the trick. Basic functionality, no? It isn’t, not on Windows. I searched high and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access