I found a solution. The problem was that LD_LIBRARY_PATH that I set in .bashrc was gone. The 'service' somehow cleared the export stuffs that was set in the .bashrc. I have solved this one by adding /usr/local/lib in a file under /etc/ld.so.conf.d
I would suggest you set the RPATH while compiling so you don't have to do tricks like this (i.e., so the libraries and executables can find themselves).
--Quanah -- Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration