Boot Command Query

Hi all

I have an interesting boot question that I need help with.

My server runs CentOS, and I need it to run the following sequence of commands upon booting.

Root needs to run:

echo 1532002304 > /proc/sys/kernel/shmmax
echo 1532002304 > /proc/sys/kernel/shmall
Then user needs to switch to postgres, who needs to run:

/ndh/pgsql/bin/pg_ctl start -D /ndh/pgsql/data
Any ideas on how we can do this? The user change half through has been giving us issues (I think).

Cheers!

 

 

 

 

Top