O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running IGWEB with systemd

This approach to running igweb works for the time being, but what if the server is rebooted? We need a means for the igweb program to be more resilient. It has to be able to start up again once the server comes back online, and nohup is not the suitable choice to accomplish this goal.

What we really need is a way to turn igweb into a system service. We can do exactly that with sysytemd, an init system, that is available with Ubuntu 16.04 LTS. With systemd, we can initialize, manage, and track system services. It can be used while the system starts up or while it is running.

You will need to run the following commands as the root user, since you need to be root in order to add a new system service.

In order to turn ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required