2

I'm running Ubuntu Server 10.04. I've installed mysql, nsd3, lighttpd, but nothing but sshd will start when I reboot. I can start them manually. What do I do to make these start at boot?

3 Answers3

1

While you can technically place the correct files by hand, the prefered method would be update-rc.d

Wrikken
  • 981
1

This may be related to Ubuntu bugs #554172 or #497299.

Try making sure your loopback interface is defined properly in /etc/network/interfaces

EDIT: Assuming that the services are actually set to start at boot, which usually happens during package installation.

interfect
  • 333
  • The loopback does appear to be correctly configured:

    Auto generated lo interface

    auto lo iface lo inet loopback

    The startup scripts are in the correct directory, but not all of them seem to run correctly, if I invoke them manually. For example:

    ./S20anacron status Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service S20anacron status

    Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the status(8) utility, e.g. status S20anacron status: Unknown job: S20anacron

    I don't know what this means.

    –  Jul 26 '10 at 23:22
  • The command you're looking for is "status anacron" or "service start anacron".

    Judging from http://upstart.ubuntu.com/getting-started.html you might want to try editing /etc/init/.conf

    – interfect Jul 26 '10 at 23:36
  • That did it for mysql - just a quick change to /etc/init/mysql.conf to, replacing start on (net-device-up and local-filesystems) with start on runlevel [235] and it now starts at boot. It seems as though the links in /etc/rc2.d/ are meaningless. But it works, and I'm sure I can figure out the rest. Thanks! –  Jul 27 '10 at 01:16
0

If your SysV scripts are faulty somehow, you could delete them manually and use chkconfig to set them for you.