Ubuntu 18.04
foundry-error.service
[Unit]
Description= /home/man/errorpage/error_pages.js - User errorpage.
Documentation=https://blah.com
After=network.target
[Service]
Environment=NODE_PORT=%i
Type=simple
User=man
ExecStart=/usr/bin/node /home/man/errorpage/error_pages.js
Restart=on-failure
[Install]
WantedBy=multi-user.target
I try to pass the port to the start up.
systemctl start foundry-error@8000
systemctl start foundry-error@8000.service
systemctl start foundry-error.service@8000
All of these iterations come back with "Unit ... not found." So I am not sure how to pass the port # in as I need to pass in 3 different ports. I have done this from root, and from sudo man. All to the same issue.