Awesome
Itzo-launcher
A simple helper for launching the right version of itzo.
Build
$ make
Usage
Itzo-launcher should be used via systemd or some other service manager. Example unit file:
[Unit]
Description=Itzo launcher
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=on-failure
RestartSec=3s
ExecStart=/usr/bin/itzo-launcher --v=5
[Install]
WantedBy=multi-user.target
Launchd plist file example:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.elotl.itzo-launcher</string>
<key>UserName</key>
<string>root</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/itzo-launcher</string>
<string>--v=5</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>StandardErrorPath</key>
<string>/var/log/itzo-launcher.log</string>
<key>StandardOutPath</key>
<string>/var/log/itzo-launcher.log</string>
</dict>
</plist>
Once an instance is started with itzo-launcher on it, itzo-launcher will check user-data, download the version of itzo requested via the usual itzo user-data files, and start itzo.
Passing flags to itzo from KIP
All flags specified in provider.yaml
section:
cells:
cellConfig:
itzoFlag-use-podman: true
in format itzoFlag<actual flag>: flag value
will be passed to itzo command.
In example, if you specify:
cells:
cellConfig:
itzoFlag-use-podman: true
itzoFlag-custom-port: 1234
launcher will run itzo -use-podman true -custom-port 1234