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 8368163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:19:23+00:00 2026-06-09T13:19:23+00:00

Scripts written for pear’s "system_daemon" refuse to fork off to form new process. This

  • 0

Scripts written for pear’s "system_daemon" refuse to fork off to form new process. This works well on my old server, but my new server is not having it. The daemon scripts run just fine in a shell and will run until I kill them. As a temporary workaround, I have the daemon running in a detached tmux shell, but this obviously isn’t a long term solution.

Are there any known issues that prevent it from forking?

I have PHP 5

PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58) 

and pcntl listed here loaded ini’s

/etc/php5/cli/conf.d/pcntl.ini,

and here further down in php -i output

pcntl

pcntl support => enabled

and Pear

PEAR Version: 1.9.4

and Pear’s system_daemon

pear/System_Daemon                             1.0.0      1.0.0  Turn PHP scripts into Linux daemons

Any ideas what is going wrong here?

I can’t post source, unfortunately, but I can say that all (including the examples in the documentation) system_daemon scripts refuse to fork.

Edit — Additional details

As suggested by cweiske, I tried the pcntl example and it worked correctly

I also tried uninstall system_daemon, purging my pear installation with aptitude, restarting, re-installing pear, and re-installing system_daemon. This also had no effect.

I can duplicate this issue on other Ubuntu boxes 11.04+

  • 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-06-09T13:19:25+00:00Added an answer on June 9, 2026 at 1:19 pm

    Issue resolved.

    1) My appName property had an uppercase letter in it, which newer versions of system_daemon will complain about

    2) I had installed pear and system_daemon before install pcntl. From the source this didn’t look like it could cause an issue, but I re-installed both to be safe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written python scripts to list repositories and commits. To create a new
I am new to PyDev, written scripts using mainly notepad++ and jedit where I
I'm trying to throw new Exception(...) in a script written for PHP CLI. This
So I always written scripts using perl but making an attempt with Ruby, so
I have a number of manually written scripts (.sql) for tables, views and stored
I have written two scripts where one script calls subprocess.Popen to run a terminal
I have written some Python scripts in Eclipse where at some point I have
I have a mechanize script written in python that fills out a web form
I've written this script which pulls the sAMAccountName of the specified user from the
I have a number of scripts written in Python 2.6 that can be run

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.