Unit: Add arguments to go executable

Created on 20 Apr 2018  路  3Comments  路  Source: nginx/unit

Is it possible to pass args to a go binary?

So I might want to start /path/to/goapp --config=/path/to/goconfig
Is there some way to pass --config=/path/to/goconfig to the binary via unit?

enhancement

Most helpful comment

@martinr92 Yes, it will be available in the next release.

All 3 comments

Sorry, no way right now. It's clear that there must be an option for setting args.

@VBart Thanks for implementing this feature.
Will it be available in the next unit release?

@martinr92 Yes, it will be available in the next release.

Was this page helpful?
0 / 5 - 0 ratings