coreybutler / coreybutler/node-linux

Fix how Linux flavor is determined for generating systemv init script

Open
#31 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
424
Forks
79
PR merge metrics
No merged PRs in 30d

Description

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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.