gortal 堡垒机
cat > /usr/lib/systemd/system/gortal.service << EOF
[Unit]
Description=gortal client
After=network.target
Wants=network.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
ExecStart=/opt/soft/gortal -p 12222 -hk /root/.ssh/id_rsa -c /opt/soft/gortal.yml
ExecReload=/opt/soft/gortal -p 12222
[Install]
WantedBy=multi-user.target
EOF