How to add script on mandriva to restart samba when boot up?
How to add script on mandriva to restart samba when boot up?
I was wondering how do I make a bash script that automatically restarts samba after all the services are running? The reason I ask is because mandriva 2010.2 has a bug where smb is conflicting with nmbd and if I restart smb at boot it fixes the problem. So I just need it where the system automatically restarts smb. Thank you. |
you need to go into /etc/rcX.d and look for samba service. that should be something like this S<number>samba (this is a symbolic link). You can make a copy of it as S99samba2 or whatever and it will try to start smbd again.
|
Quote:
|
you need to replace X with a number, which is your actual runlevel. it is usually 2 or 3, but I'm not sure.
|
Normally a major service like that would be defined in /etc/init.d & linked from the relevant startup dir eg /etc/rc3.d
|
Quote:
is this the one you mention. |
yes, probably
|
Quote:
|
This is not working. Ive tried to copy and rename S91smb to S91smb2
but nothings happen. |
would be better to try S99smb2 and also would be nice to look into the log files.
|
All times are GMT -5. The time now is 07:39 AM. |