ws.server/install.sh

15 lines
506 B
Bash
Raw Permalink Normal View History

#!/bin/bash
# (1) Copy the systemd service file
sudo cp /opt/ws.server/ws.server@.service /lib/systemd/system/ws.server@.service;
# Note: cannot create a symlink, it will be too much link level
#sudo ln -s /opt/ws.server/ws.server@.service /lib/systemd/system/ws.server@.service;
# (2) Reload systemctl daemon to manage the new service
sudo systemctl daemon-reload;
# (3) Enable /opt/ws.server/ndli1718.jar to be executed at startup + restart on fail
sudo systemctl enable ws.server@ndli1718.service;