Skip to content

Instantly share code, notes, and snippets.

@brandentimm
Created December 18, 2014 18:28
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 brandentimm/57c3bbce3bf53ca18fa6 to your computer and use it in GitHub Desktop.
Save brandentimm/57c3bbce3bf53ca18fa6 to your computer and use it in GitHub Desktop.
systemd execstart - arguments with spaces
[Unit]
Description=Docker Registry Proxy
After=docker.service
After=docker-registry.service
Requires=docker.service
Requires=docker-registry.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill regproxy
ExecStartPre=-/usr/bin/docker rm regproxy
ExecStart=/usr/bin/docker run -e HTTPD_AUTH_LDAP_BIND_DN='CN=Some User,OU=Users,DC=example,DC=com' regproxy
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment