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

Build Library for Grabbing program ids (PIDs) #1

Open
junkert opened this issue Mar 21, 2016 · 1 comment
Open

Build Library for Grabbing program ids (PIDs) #1

junkert opened this issue Mar 21, 2016 · 1 comment
Assignees

Comments

@junkert
Copy link
Contributor

junkert commented Mar 21, 2016

This should be relatively straight forward. You will want to create a class called: "PIDContainer" that will contain all variables and functions to:

  1. Read PID from file
  2. Write PID to a file
  3. Parse the file

Order of operations:

  1. Read PID FILE from a CLI option (/var/run/ices/ices.pid as the default)
  2. Grab PID from 'ps aux | grep ices'
  3. compare the two pids
  4. if the pid in the file isn't the same as what is in ps -aux then remove the pid file and create a new one with the ps aux info.
@junkert junkert assigned junkert and wmacmil and unassigned junkert Mar 21, 2016
@junkert
Copy link
Contributor Author

junkert commented Mar 21, 2016

Hey @wmacmil, I should be able to have time this week to help if you need.

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

No branches or pull requests

2 participants