newLISP Fan Club

Forum => newLISP in the real world => Topic started by: csfreebird on December 22, 2013, 12:39:40 AM

Title: exec is blocked by service command on Ubuntu
Post by: csfreebird on December 22, 2013, 12:39:40 AM
On Ubuntu, I configured some services under /etc/init.d/ folder

When start my service in terminal, it works fine
# service sign_service start
 * Starting sign service                                                                                                                                                         /


But If I try to launch it in newlisp, the exec function is blocked, how to solve this problem?
> (exec "service sign_service start")

I tried add &, but no effect
Title: Re: exec is blocked by service command on Ubuntu
Post by: csfreebird on February 25, 2014, 08:54:56 AM
I fixed this problem. It's nothing to do with newLisp. Just edit /etc/init.d/data_service script file

replace

./data_service ./config.xml &

with

nohup ./data_service_d ./config.xml > /dev/null 2>&1 &