Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Conversation

@kasperg
Copy link

@kasperg kasperg commented Mar 30, 2015

I have had some troubles getting the init script to identify the pid properly on a Debian 7 box.

The problems seem to be related to the structure of the ps output and the cut command which always yields an empty response. I ended up using an approach suggested on StackOverflow.

I am not a Linux expert but it worked for me and perhaps it can be an inspiration for others or spark a discussion about the right way to go about this.

- Use afx instead of aux
- Filter out own grep process
- Use awk instead of cut
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant