Solve Ubuntu Chkconfig[/sbin/insserv Unable to find path problem]

Source: Internet
Author: User

Http://www.cnblogs.com/lost-1987/archive/2012/10/17/2727285.html

Today, in the virtual machine to do the DRBD experiment, the use of chkconfig management services, there is a problem. [email protected]:/root# chkconfig--list | grep drbd drbd 0:off 1:off 2:off 3:off 4:off 5:off 6:off [email protected]:/root# Chkconfig DRBD on/sbin/insserv:no Such file or directory This is a bug in Ubuntu 12.04, and the following methods can be used to resolve [email protected]: /root# whereis insserv Insserv:/etc/insserv/etc/insserv.conf/usr/lib/insserv/usr/share/insserv/usr/share/man/man8 /insserv.8.gz put the above found directory, one by one to see the file found in/usr/lib/inside [email protected]:/root# ls-l/usr/lib/insserv/total 56 -rwxr-xr-x 1 root root 56368 Apr 9 19:07 Insserv and then I made a connection. [email protected]:/root# ln-s/usr/lib/insserv/ Sbin/insserv [email protected]:/root# chkconfig DRBD On/sbin/insserv:permission denied from the above, reported a permission not allowed, very depressed [email protected]:/root# ls-l/sbin/insserv lrwxrwxrwx 1 root root June 04:27/sbin/insserv-/usr/l Ib/insserv [email protected]:/root# ls-l/Usr/lib/insserv Total 56-rwxr-xr-x 1 root root 56368 Apr 9 19:07 Insserv from above, have permission ah, good depressed, finally found/usr/lib/insserv unexpectedly is a directory [email protected]:~# cd/usr/lib/insserv/[email protected]:/usr/lib/insserv# pwd/usr/lib/ins serv [email protected]:/usr/lib/insserv# ls Insserv then it's settled. [email protected]:/usr/lib/insserv# RM- Rf/sbin/insserv [email protected]:/usr/lib/insserv# ln-s/usr/lib/insserv/insserv/sbin/insserv [email&nbsp ;p rotected]:/usr/lib/insserv# chkconfig DRBD on the script is attempting to invoke have been converted to an Upsta RT job, but Lsb-header isn't supported for upstart jobs. Insserv:warning:script ' friendly-recovery ' missing LSB tags and overrides insserv:default-start undefined, assuming Empty start RunLevel (s) for script ' friendly-recovery ' insserv:default-stop undefined, assuming empty Stop runleve L (s) for script ' Friendly-recovery ' reported a bunch of other errors, first of all, look at the service OK no [email protected]:/usr/lib/insserv# Chkconfig--list | grep drbd drbd 0:off 1:off 2:on 3:on 4:on 5:on 6:off [email protected]:/usr/li b/insserv# OK, now see the service has been done. Ubuntu still has bugs, hehe, seems to be quite a lot. I used to play Redhat and didn't find a similar problem.

Troubleshooting Ubuntu Chkconfig[/sbin/insserv cannot find a path problem]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.