Closed Enet4 closed 4 years ago
Thanks, this is great! I didn't even realize that start arguments were a thing. I'll plan to make a new release this weekend with the addition (plus I might try to squeeze in some logging options if I can get to it).
@Enet4, this is now available in v0.6.0, along with log rotation.
This adds the option
--pass-start-args
to shawl so that arguments given on service start can be passed into the managed executable.So for example, we can create a new service like this:
Now when starting the service like this:
The argument
extra
is also passed tofile.exe
.I believe that this is a useful feature to become available upstream (we'll likely be using it ourselves in our fork). Tests were written as well. Please let me know if there is something you'd like addressed or explained.