In the script of starting up postgresql, I use
su - postgresql -c 'xxxx'
It is ok on command line.
If it is put under /etc/init.d
the message shows "su: permission denied" when the Linux boots.
I think many people face this problem. How can I fix it?