systemctl自定义service执行shell脚本时报错:code=exited, status=203/EXEC

原因:systemctl执行脚本时需要知道脚本的解释器

解决方法:在脚本的开头加上#!/bin/sh

参考:https://blog.csdn.net/shangyexin/article/details/80968202

原文地址:https://www.cnblogs.com/yuwentims/p/14678270.html