php - Upstart - Job starts but then stops immediately -


I am trying to establish an upstart job, but for some reason it stopped immediately after starting it

I have my files here:

/ect/init/test-daemon.conf

  

Code> Shutdown Ridework script sudo -u root ppp -f / usr / share / test_admani.start on startup stop on FTP script

/ usr / share / test -daemon Php

  & lt ;? Php // worker will execute every X seconds: $ sec = 2; // We create a micro-second to be used by the 'sleep' function. $ Subtraction = $ sec * 1000000; While (true) {// We again 'cycle' before, we will sleep for a bit ... sleep ($ subtle); }   

I have found this file: (which I found on the forum that logged event)

/tmp/log.file Debt / Debt / Debug / (/ dev / fd / 10): 19735: Fri 25 July 11:52:40 AST 2014: Job Test Demon / Starting Environment was: TERM = linux PATH = / Usr / local / sbin: / usr / local / bin: / usr / bin: / usr / sbin: / sbin: / bin PWD = / JOB = test- daemon SHLVL = 1 UPSTART_INSTANCE = UP APPS = UP is starting. JOJB = debug INSTANCE = _ = / usr / bin / env debug / (/ dev / fd / 9): 19775: Friday 25 July 11:52:41 AST 2014: Job Test Demon / Stopping. The environment was: TERM = linux PATH = / usr / local / sbin: / usr / local / bin: / usr / bin: / usr / sbin: / sbin: / bin PWD = / JOB = test-daemon RESULT = ok SHLVL = 1 UP Setting: UP URP = UP blocking = UP = debug INSTANCE = _ = / usr / bin / env debug / (/ dev / fd / 9): 1977 9: Friday 25 July 11:52:41 AST 2014 : Job Test Demon / Stopping Environment was: TERM = linux PATH = / usr / local / sbin: / usr / local / bin: / usr / bin: / usr / sbin: / sbin: / bin PWD = / JOB = test- Daemon RESULT = unsuccessful SHLVL = 1 process = response UP START_INSTANCE = UP exceptions = blocked UP = JOZ = debug INSTANCE = _ = / usr / bin / env

log file Switch to, to get me more debug information but basically some time went reiterated above.

I get this by running the running test-daemon , which is running test-daemon, process 20600

I know that test-daemon.php does not really do anything ... At the moment I need to run the actual work, once a sick drop is fixed in my code

So from above ... is anything wrong? As I should stop the job while running the stop test-daemon ?

Any suggestion would be greatly appreciated :)

Thanks, Dave

I want to post a comment but with less prestige limit I can not I am not familiar with this distro flavor, but do you try to use NOupup? By the way:

Nohoop php -f /usr/share/test_daemon.php & amp;

It may be possible that the service order hits it.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -