insserv doesn't obey # Required-Start:


openSuSE 10.3 x86_64

I need /etc/init.d/smb,nmb to run before vmware. I have edited /etc/init.d/vmware to specify to insserv that vmware depends upon smb and nmb by editing the line in the vmware script:

Required-Start: $network $syslog $smb $nmb

Then I run:

insserv vmware

The result is that the symlinks in /etc/init.d/rc[2,3,5].d don’t start smb and nmb before vmware:

ls /etc/init.d/rc5.d/S??[snv]m[wb]*

/etc/init.d/rc5.d/S07nmb /etc/init.d/rc5.d/S08smbfs
/etc/init.d/rc5.d/S07vmware /etc/init.d/rc5.d/S11smb

Nor does the /etc/init.d/.depend.start file reflect the dependencies for vmware:

cat /etc/init.d/.depend.start|grep vmware:

vmware: network syslog

Why doesn’t insserv obey the “# Required-Start: $network $syslog $smb $nmb” line in the vmware init script ?!?!

Thanks for assistance.

That’s because you need to define $smb and $nmb in
the /etc/insserv.conf file, read man insserv. Whilst the softlinks are
created, they don’t go anywhere.

Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel
up 1:12, 1 user, load average: 0.01, 0.03, 0.05
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

Oops, the nmb and smb should not have $ as the first char. That specifies them as System Facilities, which is unnecessary. When specified simply as smb and nmb in the vmware script, then insserv works.

Of course, this is backwards anyway, since what I really needed was the opposite:

X-Start-Before: smb nmb

Good day!