[Unit]
Description=WebSocket Server [%i]
Before=network-pre.target
Wants=network-pre.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/env java -jar /opt/ws.server/%i.jar
[Install]
WantedBy=multi-user.target