update-public-ip/systemd/update-public-ip@.service
David Kebler ba0f05436c added in systemd unit and scripts
added in APP_INSTANCE for custom start includine debug
first basic working version that has been deployed
2020-10-13 08:30:34 -07:00

17 lines
531 B
Desktop File

[Unit]
Description=Update DNS record at Route53 with LAN public IP
After=network-online.target
[Service]
# if using aws profile files must be in .aws under user home given below.
User=sysadmin
Group=sysadmin
# NODE_ENV and NODE_INSTANCE will determine configuration file. see config directory in repo
Environment=NODE_ENV=production
Environment=NODE_APP_INSTANCE=%i
WorkingDirectory=/opt/update-public-ip
ExecStart=/usr/bin/node -r esm /opt/update-public-ip/index.js
Restart=always
RestartSec=3
[Install]
WantedBy=default.target