Page 1 of 1

exec is blocked by service command on Ubuntu

Posted: Sun Dec 22, 2013 8:39 am
by csfreebird
On Ubuntu, I configured some services under /etc/init.d/ folder
When start my service in terminal, it works fine

Code: Select all

# 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?

Code: Select all

> (exec "service sign_service start")
I tried add &, but no effect

Re: exec is blocked by service command on Ubuntu

Posted: Tue Feb 25, 2014 4:54 pm
by csfreebird
I fixed this problem. It's nothing to do with newLisp. Just edit /etc/init.d/data_service script file
replace

Code: Select all

./data_service ./config.xml &
with

Code: Select all

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