Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: sjee on April 16, 2006, 10:56:15 PM

Title: rc.local
Post by: sjee on April 16, 2006, 10:56:15 PM
I've added these lines to the /etc/rc.d/rc.local file but it seems it's not started after a reboot. Any tips on what I'm doing wrong..

export PATH=$PATH:/opt/anywhere
export LD_LIBRARY_PATH=$PATH:/opt/anywhere
dbsrv8 -gk all -gd all -ti 0 -gp 4096 -m -c 25p -n KINGSRV -ud

Typing this in the console everything works fine.
Title: rc.local
Post by: byte on April 16, 2006, 11:36:12 PM
You say your adding them lines in directly? if so then that's why it's going on a reboot, you need to add via template to make them stay there.

See documentation link if unsure of how it works
Title: rc.local
Post by: sjee on April 17, 2006, 12:07:40 AM
After a "high speed training" on the template system I've added these lines to the /etc/rc.d/rc.local file with a template. (that was easy :-D ) But still is seems nothing is started after a reboot.

I'm a linux newbie but I would expect the daemon to start automaticly like it was started from the console, or am I missing something here?
Title: rc.local
Post by: byte on April 17, 2006, 12:42:32 AM
never tired editing myself but one would think if you do that followed by

signal-event console-save

It would save it and next time you reboot it should be there
Title: rc.local
Post by: sjee on April 17, 2006, 01:08:31 AM
Thanx but maybe I didn't explain it correctly. The lines are correct in the rc.local so that is not the problem but they do not seem to be executed... It has probably nothing to do with SME but with my knowledge of linux  :hammer:
Title: rc.local
Post by: cactus on April 17, 2006, 12:05:04 PM
Quote from: "sjee"
Thanx but maybe I didn't explain it correctly. The lines are correct in the rc.local so that is not the problem but they do not seem to be executed... It has probably nothing to do with SME but with my knowledge of linux  :hammer:

Did you reboot already so the changes made are loaded?