You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# systemd unit file
|
|
|
|
#
|
|
|
|
# place in /etc/systemd/system
|
|
|
|
# systemctl enable wetty.service
|
|
|
|
# systemctl start wetty.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Wetty Web Terminal
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
WorkingDirectory=$HOME/.config/yarn/global/node_modules/wetty/
|
|
|
|
ExecStart=/usr/bin/node . -p 3000 --host 127.0.0.1
|
|
|
|
TimeoutStopSec=20
|
|
|
|
KillMode=mixed
|
|
|
|
Restart=always
|
|
|
|
RestartSec=2
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|