mirror of
https://github.com/Jarli01/xenorchestra_installer.git
synced 2024-11-23 12:30:45 +01:00
Includes systemd startup
This commit is contained in:
parent
b7d96468ba
commit
e0af0bf2cc
@ -17,5 +17,23 @@ cd /opt/xo-web
|
||||
sudo npm i lodash.trim@3.0.1
|
||||
sudo npm install
|
||||
sudo npm run build
|
||||
cd /opt/xo-server
|
||||
sudo npm start
|
||||
cat > /etc/systemd/system/xo-server.service <<EOF
|
||||
# systemd service for XO-Server.
|
||||
|
||||
[Unit]
|
||||
Description= XO Server
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/xo-server/
|
||||
ExecStart=/usr/local/bin/node ./bin/xo-server
|
||||
Restart=always
|
||||
SyslogIdentifier=xo-server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
sudo chmod +x /etc/systemd/system/xo-server.service
|
||||
sudo systemctl enable xo-server.service
|
||||
sudo systemctl start xo-server.service
|
||||
|
Loading…
Reference in New Issue
Block a user