Closed ghostsquad closed 9 years ago
I agree, this should be a module. I will test out making the nssm run a module as a service..
Nssm would still run PowerShell, the first command would be
Import-module graphite-PowerShell
Instead of dot-sourcing the script.
This will also you to upload the module to PoallowtorShell Gallery (https://msconfiggallery.cloudapp.net) which will become a very big deal with the release of PowerShell v5 and its PowerShellGet module.
End result: install-module graphite-PowerShell
Thanks @halr9000! I have reached out to the email behind the PowerShell Gallery to get the module added.
I'd like to see this as a module, that way, private functions are hidden away, and things like
Can be done when the module is imported, instead of when a function is run.