exec is blocked by service command on Ubuntu

Q&A's, tips, howto's

exec is blocked by service command on Ubuntu

Postby csfreebird » Sun Dec 22, 2013 8:39 am

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

Re: exec is blocked by service command on Ubuntu

Postby csfreebird » Tue Feb 25, 2014 4:54 pm

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 &
csfreebird
 
Posts: 107
Joined: Tue Jan 15, 2013 11:54 am
Location: China, Beijing


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 2 guests

cron