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

Plugin is not running with the Daemon #4

Open
asciifaceman opened this issue Mar 9, 2016 · 5 comments
Open

Plugin is not running with the Daemon #4

asciifaceman opened this issue Mar 9, 2016 · 5 comments

Comments

@asciifaceman
Copy link

Hello,

I have the plugin successfully running when manually called via python on the command line, however it does not appear to be coming on and running with the newrelic-daemon.

Could I be missing something not documented?

@asciifaceman
Copy link
Author

So after quite a bit of digging and experimentation, I've found this application quite difficult to daemonize properly on ScientificLinux. What technique does a0labs use?

@ybriffa
Copy link
Owner

ybriffa commented Mar 9, 2016

Hello,

You can have different solutions :

  • use a nohup to launch it in background an detach it when you'll quit the terminal
  • use a crontab like "@reboot /usr/bin/python /path/to/bin"
  • put it in your /etc/init.d

Actually I don't really know your OS, ScientificLinux, never heard about it, and every solutions above work on debian, so I'd bet at least the 2 first would on your OS, not sure about the last one.

Best,

@asciifaceman
Copy link
Author

I am going to try upstart, nohup isn't an enterprise option and we want it running as a service.

I am going to try writing an upstart job for it.

Are you guys open to forks and merge-backs? Potentially a ./daemonization directory for different solutions?

@ybriffa
Copy link
Owner

ybriffa commented Mar 9, 2016

Alright, yes we can do it. I have also some scripts in order to set it up on debian, I just need to comit them

@asciifaceman
Copy link
Author

Upstart has been working absolutely wonderfully

PROD:[root@redacted init]# status agent-a0labs-newrelic
agent-a0labs-newrelic start/running, process 17522

I am working on a few commits and cleaning it up and then will open a PR for you to review and consider.

note: upstart should be cross-platform for almost all modern linux systems as well with no dependencies

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

2 participants