Add systemd unit file
This commit is contained in:
19
deploy/luxtools.service
Normal file
19
deploy/luxtools.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=luxtools web service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/opt/luxtools/bin/luxtools
|
||||
WorkingDirectory=/opt/luxtools
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
User=luxtools
|
||||
Group=luxtools
|
||||
Environment=LOG_LEVEL=info
|
||||
Environment=PORT=9000
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user