That tutorial targets Linux distributions that use the
systemd init system. That is also what provides the
systemctl command. What Linux distribution are you working with? Ubuntu will be moving to
systemd in a future release, but currently does not use it. Fedora, CentOS 7, and CoreOS on the other hand all should come with that command available by default.
If you are using Ubuntu, you can accomplish something similar using Upstart. For instance, the
systemd service file from that tutorial can be written as an Upstart script like so:
description "Upstart script to launch a node app"
start on (local-filesystems and net-device-up IFACE=eth0)
stop on runlevel [!12345]
exec /usr/bin/node index.js
For all the details on how to use Upstart, check out:
Use Upstart for modern, full-coverage initialization. This tutorial explains the concepts behind initialization and provides two practical examples of initialization jobs with Upstart.