Skip to content

CapsuleStartupCommand

A command a capsule runs when it starts (startup in its .mtr file). Its output is not kept.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
commandstringThe program to run, such as python3.
argumentsstring[]The program’s arguments, each passed as one word exactly as given.
runAsUserstring | nullThe user to run it as, one of the capsule’s users. Null: the default user.
maximumDurationtimespan | nullThe longest it may run. Null: five minutes.
waitToCompletebooleanWhether the next command waits for this one to finish. If it waits and the command fails, the capsule run fails.
{
"command": "...",
"arguments": [
"..."
],
"runAsUser": "...",
"maximumDuration": "00:05:00",
"waitToComplete": false
}