[Unit] # 服务名称,可自定义 Description = iflytop hal daemon After = network.target Wants = network.target [Service] Type = simple ExecStart = /iflytopd/iflytopzexcand/iflytopzexcand Restart=always RestartSec=2 WorkingDirectory=/iflytopd/iflytopzexcand/ [Install] WantedBy = multi-user.target