Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running in the background (hack) #12

Closed
dangreenisrael opened this issue Jul 29, 2014 · 3 comments
Closed

Running in the background (hack) #12

dangreenisrael opened this issue Jul 29, 2014 · 3 comments

Comments

@dangreenisrael
Copy link

I get the server running in the background, and deal with it potentially crashing by running this php script as a cron:

// This lets me run the script on an interval
exec('pkill lifx-http');
echo "killed LIFX";

// The nohum and & let me keep running commands after the server is launched
$command = 'lifx-http';
exec("nohup $command >/dev/null 2>/dev/null &"); 
echo 'started LIFX server';

// I exit the script to prevent any system hang
exit;
@zembrowski
Copy link

Hi Dan,

how did you manage to run lifx-http in the background?

Cheers,
Krzysztof

@dangreenisrael
Copy link
Author

I think that I ran it through a php script calling it with && to be asynchronous but I don’t remember

On Nov 23, 2014, at 16:26, Krzysztof Tomasz Zembrowski notifications@github.com wrote:

Hi Dan,

how did you manage to run lifx-http in the background?

Cheers,
Krzysztof


Reply to this email directly or view it on GitHub #12 (comment).

@justinatomatic
Copy link

If your using RVM you can generate wrapper scripts and then run lifx-httpd with any process control app.

I've got it working with supervisor.

http://omaticlabs.com/homepage/24/lifx-http-supervisor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants