Browse Source

added systemd file

with basic settings.
master
Blaine Motsinger 1 year ago
parent
commit
1036e27b20
1 changed files with 16 additions and 0 deletions
  1. 16
    0
      systemd/weather-api.service

+ 16
- 0
systemd/weather-api.service View File

@@ -0,0 +1,16 @@
[Service]
ExecStart=/usr/local/bin/node /home/apiuser/weather-api/weather-api.js
Restart=always

StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=weather-api

Type=simple
User=apiuser
Group=apiuser

Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target

Loading…
Cancel
Save