一个项目用的linunx后台服务配置

[Unit]
Description=Springboot project auto start
After=syslog.target network.target nss-lookup.target nacos-wrapper.service soc.mc.service isg-devicemanger-wrapper.service isg-identify-wrapper.service
Wants=nacos-wrapper.service soc.mc.service isg-devicemanger-wrapper.service isg-identify-wrapper.service

[Service]
User=root
Type=forking
ExecStart=/opt/dccs/svr/isg/isg-common-wrapper.sh start
ExecReload=/opt/dccs/svr/isg/isg-common-wrapper restart
ExecStop=/opt/dccs/svr/isg/isg-common-wrapper.sh stop
ExecStartPre=/bin/sleep 50
 
[Install]
WantedBy=multi-user.target  

 

posted @ 2022-11-23 15:09  XiaoK  阅读(13)  评论(0编辑  收藏  举报