And*_*hev 4 centos java upstart
我从这个 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)
你有什么想法吗?
我不知道这是什么原因,但问题出在我的发行版中命令行工具的名称是“initctl”。以下版本工作正常:
sudo initctl status play
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4620 次 |
| 最近记录: |