我从这个 gist创建了一个新贵服务。我把它放入:
[andrey@vm01 ~]$ ll /etc/init/play.conf
-rw-r--r--. 1 root root 1255 Dec 1 20:50 /etc/init/play.conf
Run Code Online (Sandbox Code Playgroud)
我还安装了 upstart,因为我的系统上没有它:
sudo yum install upstart
Run Code Online (Sandbox Code Playgroud)
我重新启动了几次,但仍然出现此错误:
[andrey@vm01 ~]$ sudo service play status
[sudo] password for andrey:
play: unrecognized service
Run Code Online (Sandbox Code Playgroud)
你有什么想法吗?