github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/docs/v2/framework/run-service.md (about) 1 --- 2 title: Run Service 3 keywords: runtime 4 tags: [micro, runtime] 5 sidebar: home_sidebar 6 permalink: /run-service 7 summary: Run a service with the micro runtime 8 --- 9 10 The micro runtime provides a way to manage the lifecycle of services without the complexity of orchestration systems. 11 By default it provides a simple local process manager which starts your service, watches for changes and rebuilds 12 as required. 13 14 You can start the service with one command 15 16 ``` 17 micro run service 18 ``` 19 20 ## Usage 21 22 To run and manage your service locally do the following. 23 24 ``` 25 # cd to your service directory e.g examples/greeter/srv 26 cd examples/greeter/srv 27 28 # run the service 29 micro run service 30 31 # edit a file 32 sed -i '1 i\// Package main' main.go 33 ``` 34 35 Watch as your service is started, sees the file change, rebuilds and starts again. 36 37 ## TODO 38 39 We'll be adding the ability to send the command to run a service to the `micro runtime` service as well as 40 querying status, killing the service, etc. 41