target/pack/bin/gear app -jar experiments/distributeservice/target/$SCALA_VERSION_MAJOR/gearpump-experiments-distributeservice_$VERSION.jar org.apache.gearpump.distributeservice.DistributeService
target/pack/bin/gear app -jar experiments/distributeservice/target/$SCALA_VERSION_MAJOR/gearpump-experiments-distributeservice_$VERSION.jar org.apache.gearpump.distributeservice.DistributeServiceClient -appid $APPID -file ${File_Path} -script ${Script_Path} -serviceName ${Service_Name} -target ${Target_Path} -Dkey1=value1 -Dkey2=value2 ```<br> This command will distribute the service zip file(variable ```file```) to the target path(variable ```target```), then copy the script to ```/etc/init.d``` on each machine and install this service named with ```serviceName```<br> Note that you can pass some variables when the script file is installed, for example, you can submit a script template with syntax like
role=${${hostname}.role}
Then when submit the service, you can define ```-Dhost1.role=master```, which will replace the ```role``` property on machine host1.