exec is blocked by service command on Ubuntu

Started by csfreebird, December 22, 2013, 12:39:40 AM

Previous topic - Next topic

csfreebird

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

csfreebird

#1
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 &