Skip to content

Instantly share code, notes, and snippets.

@BugRoger
Created March 1, 2015 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BugRoger/33cbc8fada3fc3236621 to your computer and use it in GitHub Desktop.
Save BugRoger/33cbc8fada3fc3236621 to your computer and use it in GitHub Desktop.
ceph-osd.service
[Unit]
Description=Ceph OSD
After=docker.service
After=ceph-mon.service
RequiresMountsFor=/var/lib/ceph/osd
[Service]
EnvironmentFile=/etc/environment
Environment=HOSTNAME=%H
ExecStartPre=/usr/bin/docker run --rm -v /opt/bin:/opt/bin ibuildthecloud/systemd-docker
ExecStart=/opt/bin/systemd-docker --env run --rm --name %p-%i --net=host --privileged -v /etc/ceph:/etc/ceph -v /dev:/dev -v /var/lib/ceph/osd:/var/lib/ceph/osd ceph/osd
Restart=always
RestartSec=10s
Type=notify
NotifyAccess=all
TimeoutStartSec=120
TimeoutStopSec=15
[Install]
WantedBy=multi-user.target
[X-Fleet]
Global=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment