Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd job to start jekyll-page at boot #32

Open
andi34 opened this issue Apr 19, 2018 · 2 comments
Open

systemd job to start jekyll-page at boot #32

andi34 opened this issue Apr 19, 2018 · 2 comments
Assignees
Labels
information Information for future use

Comments

@andi34
Copy link
Owner

andi34 commented Apr 19, 2018

/lib/systemd/system/jekyll.service:

[Unit]
Description=JekyllServer
After=syslog.target network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/jekyll serve --incremental --host YOUR_IP --port PORTNUMBER --source /path/to/page
ExecReload=/usr/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target

@andi34
Copy link
Owner Author

andi34 commented Apr 19, 2018

Add the systemd service and start it:

systemctl enable jekyll.service
systemctl start jekyll.service

@andi34 andi34 added the information Information for future use label Apr 19, 2018
@andi34 andi34 self-assigned this Apr 19, 2018
Repository owner locked and limited conversation to collaborators Apr 19, 2018
@andi34
Copy link
Owner Author

andi34 commented Apr 26, 2018

Better use

--watch

instead

--incremental

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
information Information for future use
Projects
None yet
Development

No branches or pull requests

1 participant