ara-infra/roles/website/templates/hugo.service.j2
David Moreau Simard f026c4e012
Stop sending hugo logs to a specific file
Let it log to the foreground, it'll be picked up by systemd/journalctl.

Change-Id: I3fe5ca758dfc350e7ca12265007a0b70c132691c
2019-03-07 13:43:42 -05:00

17 lines
383 B
Django/Jinja

[Unit]
Description=Hugo internal server
After=network.target
[Service]
User=hugo
Group=hugo
Type=simple
ExecStart=/usr/local/bin/hugo server --source /opt/ara-infra/website --themesDir {{ hugo_directory }}/themes --baseURL "https://ara.recordsansible.org/" --appendPort=false
ProtectSystem=yes
ProtectHome=no
NoNewPrivileges=yes
PrivateTmp=yes
[Install]
WantedBy=multi-user.target