mirror of
https://github.com/Jarli01/xenorchestra_installer
synced 2025-12-25 13:09:59 +00:00
Includes systemd startup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user