摘要:
Ubuntu/Debian为了加快开机速度,用dash代替了bash。 dpkg-reconfigure dash 选择 No,取消dash即可,要重新开启dpkg-reconfigure dash选择Yes即可。 或者dash启用时使用bash xxxxx.sh 另一种可能是: sh文件里的 #! 阅读全文
摘要:
/lib/systemd/system下创建test.service文件 [Unit] Description=test [Service] Type=forking PIDFile=/run/test.pid #EnvironmentFile=/etc/systemd/test.conf Exec 阅读全文