Skip to content

Instantly share code, notes, and snippets.

@svschannak
Created May 11, 2017 10:31
Show Gist options
  • Save svschannak/d7e49d6a500f9f417e0a5d368c43a396 to your computer and use it in GitHub Desktop.
Save svschannak/d7e49d6a500f9f417e0a5d368c43a396 to your computer and use it in GitHub Desktop.
Caddy Server with systemd
[Unit]
Description=Caddy Server startup script for static website
[Service]
WorkingDirectory=/code/static-website/
ExecStart=/usr/local/bin/caddy
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment