mirror of
https://github.com/ad1217/PrinterStatus
synced 2024-12-24 18:45:41 -05:00
Add systemd service file
This commit is contained in:
parent
a852eaedd3
commit
e95dccb7a2
13
printerStatus.service
Normal file
13
printerStatus.service
Normal 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
|
Loading…
Reference in New Issue
Block a user