怎样让/etc/init.d/xxxx自动启动?
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 219
- 注册时间: 2007-02-05 18:55
怎样让/etc/init.d/xxxx自动启动?
做了一个可执行脚本(化名xxxx),将它放到了/etc/init.d/目录下,
然后按网页教程执行
$ sudo /usr/sbin/update-rc.d -f xxxx defaults
提示:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_CTYPE = "zh_CN.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Adding system startup for /etc/init.d/xxxx ...
/etc/rc0.d/K20xxxx -> ../init.d/xxxx
/etc/rc1.d/K20xxxx -> ../init.d/xxxx
/etc/rc6.d/K20xxxx -> ../init.d/xxxx
/etc/rc2.d/S20xxxx -> ../init.d/xxxx
/etc/rc3.d/S20xxxx -> ../init.d/xxxx
/etc/rc4.d/S20xxxx -> ../init.d/xxxx
/etc/rc5.d/S20xxxx -> ../init.d/xxxx
重启系统后发现脚本没有自动执行,还是要手动
/etc/init.d/xxxx start
我做错了?
然后按网页教程执行
$ sudo /usr/sbin/update-rc.d -f xxxx defaults
提示:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en",
LC_ALL = (unset),
LC_CTYPE = "zh_CN.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Adding system startup for /etc/init.d/xxxx ...
/etc/rc0.d/K20xxxx -> ../init.d/xxxx
/etc/rc1.d/K20xxxx -> ../init.d/xxxx
/etc/rc6.d/K20xxxx -> ../init.d/xxxx
/etc/rc2.d/S20xxxx -> ../init.d/xxxx
/etc/rc3.d/S20xxxx -> ../init.d/xxxx
/etc/rc4.d/S20xxxx -> ../init.d/xxxx
/etc/rc5.d/S20xxxx -> ../init.d/xxxx
重启系统后发现脚本没有自动执行,还是要手动
/etc/init.d/xxxx start
我做错了?
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 219
- 注册时间: 2007-02-05 18:55
- shenmingya
- 帖子: 7
- 注册时间: 2007-04-16 17:29
- 123662981
- 帖子: 55
- 注册时间: 2010-10-22 22:11
- yaoms
- 帖子: 4952
- 注册时间: 2007-10-19 14:51
- 来自: 深圳
Re: 怎样让/etc/init.d/xxxx自动启动?
方法没错,是不是脚本本身的问题啊?
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
alias 爱慕颇雷尔='mplayer'