Rather than invoking init scripts through /etc/init.d启动程序错误

作者:金良([email protected]) csdn博客:http://blog.csdn.net/u012176591

Rather than invoking init scripts through /etc/init.d启动程序错误_第1张图片 今天突然发现Ubuntu上的程序不能运行了,而它们之前都运行得好好的怪哉。

例如,启动MySQL错误提示如下:

root@jin-ThinkPad-R400:/usr/bin# /etc/init.d/mysql restart  
Rather than invoking init scripts through /etc/init.d, use the service(8)  
utility, e.g. service mysql restart  
  
Since the script you are attempting to invoke has been converted to an  
Upstart job, you may also use the stop(8) and then start(8) utilities,  
e.g. stop mysql ; start mysql. The restart(8) utility is also available.  
mysql stop/waiting  
mysql start/running, process 17595 
启动samba服务错误提示:

root@jin-ThinkPad-R400:/usr/bin# /etc/init.d/smbd restart  
Rather than invoking init scripts through /etc/init.d, use the service(8)  
utility, e.g. service smbd restart  
  
Since the script you are attempting to invoke has been converted to an  
Upstart job, you may also use the stop(8) and then start(8) utilities,  
e.g. stop smbd ; start smbd. The restart(8) utility is also available.  
smbd stop/waiting  
smbd start/running, process 18144 
甚至连我自己写的几十行的C代码程序也不能运行。
不仅程序不能运行,而且某些文件夹或文件竟然莫名其妙地消失了,我还以为自己误删了呢,但是去垃圾箱里并没有找到。
后来找到原因了,磁盘空间耗尽。我记得之前我下载Android源码时过程中系统总提示我磁盘空间不足,Android源码文件达几个G,但是我没有理会。看样子就是下载Android源码造成的。

删除了这种大文件,系统恢复正常。

按照提示,如上边的samba,输入:

service smbd restart
也可以。



你可能感兴趣的:(job,scripts,init,upstart,An,through,than,invoking,Rather,程序启动错误)