User Tools

Site Tools


linux:fake_initctl

Services don't start at startup + "Fake initctl called"

May 2011

If you are experiencing problems with the scripts at startup (being marked to start, but in fact nothing happens), or you try to use service from command line and you have:

Warning: Fake initctl called, doing nothing.

then, possible fixes are:

Modifying rc-sysinit.conf

/etc/init/rc-sysinit.conf

...
#start on filesystem and net-device-up IFACE=lo # comment this
start on filesystem # add this!
stop on runlevel
...

Initial:

Initial situation

# ls -l /sbin/initctl*
-rwxr-xr-x 1 root root     84 2011-05-03 15:33 /sbin/initctl
-rwxr-xr-x 1 root root 147208 2011-05-03 15:32 /sbin/initctl.REAL

Modifications (with backup for original initctl):

Create symbolic link

mv /sbin/initctl /sbin/initctl.orig
ln -s /sbin/initctl.REAL /sbin/initctl

Final:

Final

# ls -l /sbin/initctl*
lrwxrwxrwx 1 root root     18 2011-05-18 09:58 /sbin/initctl -> /sbin/initctl.REAL
-rwxr-xr-x 1 root root     84 2011-05-03 15:33 /sbin/initctl.orig
-rwxr-xr-x 1 root root 147208 2011-05-03 15:32 /sbin/initctl.REAL

linux/fake_initctl.txt · Last modified: 2013/03/16 17:40 (external edit)