ws-webterminal.service 482 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
# Systemd Websocket for FIBRE web-terminal
[Unit]
Description=FIBRE Web-terminal WS
After=syslog.target
After=network-online.target

[Service]
Type=simple
PIDFile=/var/run/ws-webterminal.pid
WorkingDirectory=/var/www/portal
ExecStartPre=/bin/rm -f /var/run/ws-webterminal.pid
12
ExecStart=/usr/local/bin/daphne --root-path=/var/www/portal -b 0.0.0.0 -p 8001 webterminal.asgi:application --access-log /var/log/ws-webterminal.log
13 14 15
Restart=on-failure

[Install]
16
WantedBy=multi-user.target