Closed webarchymeta closed 6 years ago
This is already possible though via the workingDirectory option. Unless I'm missing something.
You can't set workingDirectory
in the config parameter of the constructor of service at present, this PR tries the make it possible. I used a short handed name cwd
for it in the config object since I also used the same name in the linux version. Perhaps it would be more consistent to use the name workingDirectory
for it in the config object for consistency ...
I believe it’s called workingdirectory. Look at lib/daemon.js. I could be missing something though.
You are right, but this one doesn't seem to be consistent with naming of other properties
You’re not wrong but it may have more to do with keeping compatibility with the other node-{os} packages. I’ll have to look into the other packages.
I’m going to close this as it’s already been enabled. However we do need to review the other codebases and make sure we’re being consistent across all the packages.
allow specifying service working directory using config option "cwd"