Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3634152
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:44:37+00:00 2026-05-19T00:44:37+00:00

In debian lenny, when running /etc/init.d/tomcat5.5 start, it runs jsvc and expects it to

  • 0

In debian lenny, when running /etc/init.d/tomcat5.5 start, it runs jsvc and expects it to daemonize itself.

From a simple bash shell, this works fine.

However, from a script, this gets completely stuck:

For example, the following works like a charm:

#!/usr/bin/perl
my $cmd = '/etc/init.d/tomcat5.5  start';
system($cmd);

However, the following gets stuck as jsvc does not daemonize:

#!/usr/bin/perl
my $cmd = '/etc/init.d/tomcat5.5  start';
`$cmd`;

It also gets stuck when running it using backticks in bash:

#!/bin/bash
CMD='/etc/init.d/tomcat5.5  start'
`$CMD`

Is this a bug in jsvc? Any idea why this works in a shell or using system() , but not using backticks? I am actually getting defunct/zombie processes because of this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:44:38+00:00Added an answer on May 19, 2026 at 12:44 am

    Just a hunch — for a job to become a daemon it needs to close any file descriptors that were opened in its parent process. Perhaps this is easier to do with system than with backticks/readpipe, though I can’t come up with any good reasons why that would be so. What if you used the backticks like:

    `$CMD < /dev/null > /dev/null 2>&1`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My setup is Django 1.2 running via mod_wsgi under Debian Lenny. I have a
I am building python2.6 from source on Debian Lenny. ( ./configure make make altinstall
System: Debian Lenny/Apache 2.2/php5.3.3 compiled from sources I'm strugglying with the date.timezone within php.ini.
I have 2 different web servers on a Debian Lenny machine. One is running
I get this error when i try to start chromedriver on debian lenny -
Greetings! I'd like to build an apache web server, running on debian lenny. It
My Apache 2.2.9 runs on Debian Lenny 5.0.1 with 2 network interfaces, one interface
Our production machines are running on debian etch. Now, they finally released lenny, the
I have deployed a django project on a server running under debian lenny. Every
I have a Debian Lenny server, from where I run my websites - Zend

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.