Skip to content

Instantly share code, notes, and snippets.

@bassam
Created November 8, 2016 18:24
Show Gist options
  • Save bassam/2c9ebf337a0647aa1adb11538afa9629 to your computer and use it in GitHub Desktop.
Save bassam/2c9ebf337a0647aa1adb11538afa9629 to your computer and use it in GitHub Desktop.
[Unit]
Description=Rook Daemon - software defined storage
Requires=network-online.target
After=network-online.target
[Service]
Slice=machine.slice
Restart=always
KillMode=process
Environment=ROOKD_PUBLIC_IPV4=192.168.2.10
Environment=ROOKD_PRIVATE_IPV4=192.168.2.10
Environment=ROOKD_DISCOVERY_URL=https://discovery.etcd.io/5c3f74ec2e1c76cdf5151bed39298aad
Environment=ROOKD_ID=%m
Environment=ROOKD_DATA_DIR=/var/lib/rook
ExecStartPre=/usr/bin/mkdir -p ${ROOKD_DATA_DIR}
ExecStart=/usr/bin/rookd
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment