Skip to content

Instantly share code, notes, and snippets.

@zhujo01
Created March 22, 2017 18:10
Show Gist options
  • Save zhujo01/761ce486d40f97f99ea9a1360b3ec6de to your computer and use it in GitHub Desktop.
Save zhujo01/761ce486d40f97f99ea9a1360b3ec6de to your computer and use it in GitHub Desktop.
convoy.service
[Unit]
Description=Convoy docker volume nfs plugin
Documentation=https://github.com/rancher/convoy
After=network.target
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/local/bin/start_convoy.sh
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
TimeoutStartSec=0
# set delegate yes so that systemd does not reset the cgroups of docker containers
Delegate=yes
KillMode=process
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment