A sample unit file for systemd should be provided
DougReeder opened this issue · 2 comments
Is it possible to install such a file when npm -g i armadietto
is run?
If I understand this correctly, no.
https://docs.npmjs.com/cli/v8/commands/npm-install#global
It's neither possible nor desired. An NPM module is not the same as an OS-level software package, and it's not meant to know the difference between for example systemd, launchd, or any other way of managing services on different operating systems, or in different environments like .e.g containers versus VMs.
However, as the title already states, there could be an example file for a systemd unit in this repo, which someone creating e.g. deb or rpm packages could use in the actual system package, and also anyone deploying in other ways could copy and adapt.