# In our use case, we are expecting from the user to specify one (optional) parameter: "name". We put the default value here if he doesn't specify it, so that it doesn't crash.
# In our use case, we are expecting from the user to specify one (optional) parameter: "name". We put the default value here if he doesn't specify it, so that it doesn't crash.
configuration.interface = 0.0.0.0
configuration.interface = 0.0.0.0
configuration.port = 1502
configuration.modbus_port = 1502
configuration.opc_ua_port = 4840
# If our use case requires that the user can specify a mail address so that his instance can mail to him (for example), we can do:
# If our use case requires that the user can specify a mail address so that his instance can mail to him (for example), we can do:
# configuration.mail-address =
# configuration.mail-address =
# If the user doesn't specify it, it won't break and the recipe can handle it (i.e don't send any mail for example).
# If the user doesn't specify it, it won't break and the recipe can handle it (i.e don't send any mail for example).
...
@@ -64,32 +65,33 @@ service = ${:etc}/service
...
@@ -64,32 +65,33 @@ service = ${:etc}/service
# Path of the log directory used by our service (see [helloweb])
# Path of the log directory used by our service (see [helloweb])
log = ${:var}/log
log = ${:var}/log
[coupler]
[coupler-modbus]
# the service will log here
# the service will log here
logfile = ${directory:log}/coupler.log
logfile = ${directory:log}/coupler-modbus.log
# Actual script that starts the service:
# Actual script that starts the service:
# This recipe will try to "exec" the command-line after separating parameters.
# This recipe will try to "exec" the command-line after separating parameters.