Skip to content

Instantly share code, notes, and snippets.

@ldcc
Last active May 24, 2019 03:21
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 ldcc/e6e43651e5af961307a07264014363fa to your computer and use it in GitHub Desktop.
Save ldcc/e6e43651e5af961307a07264014363fa to your computer and use it in GitHub Desktop.
ruby jekyll systemd service
[Unit]
Description=Daemon to start Jekyll service
[Service]
Type=simple
ExecStart=/usr/local/bin/jekyll serve --source /home/user/repos/blog --destination /srv/jekyll/blog
ExecStop=/usr/local/bin/jekyll clean --source /home/user/repos/blog --destination /srv/jekyll/blog
PIDFile=/var/run/jekyll.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment