2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-22 23:43:52 -05:00

Add systemd service file

This commit is contained in:
Adam Goldsmith 2020-09-10 18:01:57 -04:00
parent a852eaedd3
commit e95dccb7a2

13
printerStatus.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=A Read-only viewer for multiple OctoPrint instances
[Service]
Environment=PORT=8881
ExecStart=/usr/bin/npm start
WorkingDirectory=/var/www/PrinterStatus
Restart=always
RestartSec=10
User=www-data
[Install]
WantedBy=multi-user.target