[Unit] Description = yz-npc After = ssh.service [Service] Type = simple WorkingDirectory = /yuzhen_iot/prod_manage/app ExecStart = /yuzhen_iot/prod_manage/app/npc -config=/yuzhen_iot/prod_manage/cfg/npc.conf StartLimitIntervalSec=0 Restart=always RestartSec=1 [Install] WantedBy = multi-user.target