Skip to content

Instantly share code, notes, and snippets.

@dochang
Created July 8, 2014 05:13
Show Gist options
  • Save dochang/35cff4dc100920c249a3 to your computer and use it in GitHub Desktop.
Save dochang/35cff4dc100920c249a3 to your computer and use it in GitHub Desktop.
[Unit]
After=docker.service
[Service]
WorkingDirectory=/var/lib/drone
Environment="DRONED_OPTS=--port=:80"
EnvironmentFile=/etc/default/drone
ExecStart=/bin/sh -c "exec droned $DRONED_OPTS"
ExecStop=/bin/kill $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment