大佬教程收集整理的这篇文章主要介绍了linux – systemctl status显示inactive dead,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
[Unit] Description=NandaGopal Documentation=https://google.com After=multi-user.target [service] Type=forking RemainAfterExit=yes ExecStart=/usr/bin/Hello.sh & [Install] requiredBy = multi-user.target
这是我的sHell脚本.
#!/usr/bin/env bash source /etc/profile a=0 while [ $a -lt 10 ] do echo $a >> /var/log//t.txt a=`expr $a + 1` done
由于某种原因,服务没有出现,systemctl显示以下输出.
root@TARGET:~ >systemctl status -l Hello * Hello.service - NandaGopal Loaded: loaded (/usr/lib/systemd/system/Hello.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: https://google.com
一直想弄清楚过去两天出了什么问题.
有人可以帮我吗?
问候,
nandanator
以上是大佬教程为你收集整理的linux – systemctl status显示inactive dead全部内容,希望文章能够帮你解决linux – systemctl status显示inactive dead所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。