[Unit]
Description=File Transfer TcpServer ServiceDescription=MIWB Service
After=network.target auditd.service
[Service]
Type=simple
WorkingDirectory=/home/arm/ServerAutoUpdate/bin #替换
ExecStart=/home/arm/ServerAutoUpdate/bin/ServerAutoUpdate # 替换 其他的都不变
User=root
RestartSec=3
Restart=on-failure
[Install]
WantedBy=multi-user.target
journalctl -u updatefileserver 查看日志
官网