Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The file default.conf contains the installed default values for Desktop properties and JVM arguments. Though it is possible to edit this file, it is recommended that you add set custom default in in client.conf, since the contents may be overwritten by at by Image Added at any time. 

Code Block
config {
    jvmargs {
     . . .
    }
    properties {
     . . .
    }
}

...

Code Block
languagetext
themeEclipse
common {
    config {
        name=common
    }
	#properties
}

...

...

standard.conf

...

...

<service> {
 config {
  #properties...
 }
 start-after=[service1,...,service n]
 template="1/standard/basic"
}

standard.conf

The file standard.conf contains predefined service definitions that are required by the system. You can override the properties in this file by updating custom.conf.

...

Though it is possible to edit these files, it is recommended that you add custom templates in separate files and subdirectories, since the contents in mz may be overwritten by at by Image Added at any time. 

Info
titleExample - Pico Configuration Template


Code Block
languagetext
themeEclipse
config {
    properties {
        ec {
            backlog {
                dir=${mz.home}"/tmp"
            }
            httpd {
                password="DR_DEFAULT_KEY-1D2E6A059AF8120841E62C87CFDB3FF4"
                port=9090
                user=mzadmin
            }
            shutdown {
                time=60000
            }
        }
        pico {
            bootstrapclass="com.digitalroute.wf.pico.ECHTTPD"
            type=ec
        }
    }
}
template="mz.standard"
template-only=true
type=ec


...

Excerpt


Code Block
languagetext
themeEclipse
{
	template=<template name space>.<template file name>
	settings {
		pico-groups=[]
		state=enabled
	    tags=[]
	}
 	config {
  		classpath {
			#classpaths...
  		}
  		jvmargs {
			#jvmargs...
		}
		properties {
			#properties... {
			pico
				#picos.. {
				groups {
					#groups...
				}
			}
		}
 	}
}


You can set the attributes of the pico process directly and/or inherit the attributes of a template. Attributes that are set directly will override those that are inherited from a template.

...

Info
titleExample - Usage of Pico Configuration Template


Code Block
languagetext
themeEclipse
{
	template="example-ec"
	settings {	
		pico-.groups=[group1]
		state=enabled
	    tags=[tag1,tag2] 
	}
	config {
		properties {
    		ec.httpd.port: 9090
   		}
  	}
}


...