node-linux icon indicating copy to clipboard operation
node-linux copied to clipboard

Fix how Linux flavor is determined for generating systemv init script

Open tacooper opened this issue 9 years ago • 2 comments

In lib/systemv.js, the output of "cat /proc/version" is parsed for certain Redhat or Debian strings. This does not work for all Linux builds.

The standard method for init scripts is to check for either of the "/etc/redhat-release" or "/etc/debian-version" files, since they only exist in their respective Linux flavors.

Hopefully this is easy to fix, since your service does not work with our current Redhat or Debian Linux builds (although Debian is the default flavor so it ends up generating the right script for it).

tacooper avatar Apr 19 '16 15:04 tacooper

finally got some time to work on this... I'll submit a pull request soon!

tacooper avatar Jan 24 '17 21:01 tacooper

@coreybutler anyone able to review the related PR #38? just casually revisiting this open ticket years later ;)

tacooper avatar Feb 23 '22 13:02 tacooper