cat

Usage

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cat >> /etc/systemd/system/mosh.service <<EOF
[Unit]
Description=Mosh Service
After=network.target
After=systemd-user-sessions.service
After=network-online.target

[Service]
Type=simple
ExecStart=/mosh.sh
TimeoutSec=30
Restart=on-failure
RestartSec=30
StartLimitInterval=350
StartLimitBurst=10

[Install]
WantedBy=multi-user.target
EOF