Add systemd service/timer

This commit is contained in:
2019-09-23 01:06:46 -04:00
parent b679a883cd
commit f2b7a421f9
3 changed files with 26 additions and 3 deletions

14
server-pages.service Normal file
View File

@@ -0,0 +1,14 @@
[Unit]
Description=Update server page statuses
[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c 'node /home/kevin/server-pages/server-status.js > /home/kevin/my-site/public/server-apps.json'
User=kevin
Group=kevin
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/home/kevin/server-pages
[Install]
WantedBy=multi-user.target