exec is blocked by service command on Ubuntu

Q&A's, tips, howto's
Locked
csfreebird
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing
Contact:

exec is blocked by service command on Ubuntu

Post 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

csfreebird
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing
Contact:

Re: exec is blocked by service command on Ubuntu

Post 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 & 

Locked