Koozali.org: home of the SME Server

rc.local

sjee

rc.local
« 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.

Offline byte

  • *
  • 2,183
  • +2/-0
rc.local
« Reply #1 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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

sjee

rc.local
« Reply #2 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?

Offline byte

  • *
  • 2,183
  • +2/-0
rc.local
« Reply #3 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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

sjee

rc.local
« Reply #4 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:

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
rc.local
« Reply #5 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?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)