$ cat example.json
{
"units": {
"ambassador.service": {
"includes": ["ambassador.json", "restart_policy.json"],
"overrides": {
"Unit": {
"Wants": ["user-app.service]
},
}
},
"user-app.service": {
"includes": ["restart_policy.json"],
"systemd": {
"Unit": {
"Description": "description",
"Wants": [
"ambassador.service",
"lb-register.service"
],
"After": [
"ambassador.service"
]
},
"Service": {
"ExecStart": "docker run..."
},
"X-Fleet": {
"Global": true
}
}
},
"lb-register.service": {
"includes": ["restart_policy.json"],
"systemd": {
"Unit": {
"Description": "description",
"Wants": [
"user-app.service"
],
"After": [
"user-app.service"
]
},
"Service": {
"ExecStart": "docker run..."
},
"X-Fleet": {
"Global": true
}
}
}
}
}
$ cat ambassador.json
{
"systemd": {
"Unit": {
"Description": "description",
"Wants": []
},
"Service": {
"ExecStart": "docker run..."
},
"X-Fleet": {
"Global": true
}
}
}
$ cat restart_policy.json
{
"Restart": "on-failure",
"RestartSec": "1s",
"StartLimitInterval": "300s",
"StartLimitBurst": "3",
"TimeoutStartSec": "0"
}
Last active
January 4, 2016 16:25
-
-
Save JosephSalisbury/f00d3ffabb72b5eab824 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment