Add systemd service/timer
This commit is contained in:
14
server-pages.service
Normal file
14
server-pages.service
Normal 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
|
||||
Reference in New Issue
Block a user