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
This commit is contained in:
David Moreau Simard 2019-03-07 13:43:42 -05:00
parent e7612fc889
commit f026c4e012
No known key found for this signature in database
GPG Key ID: CBEB466764A9E621
3 changed files with 1 additions and 21 deletions

View File

@ -1,7 +0,0 @@
/var/log/hugo/*.log {
rotate 14
size 10M
missingok
compress
copytruncate
}

View File

@ -31,19 +31,6 @@
shell: /sbin/nologin
home: "{{ hugo_directory }}"
- name: Create log directory for Hugo
file:
path: /var/log/hugo
state: directory
owner: hugo
group: hugo
mode: 0750
- name: Set up logrotate for Hugo
copy:
src: hugo.logrotate
dest: /etc/logrotate.d/hugo
- name: Download Hugo release tarball
get_url:
url: "{{ hugo_release }}"

View File

@ -6,7 +6,7 @@ After=network.target
User=hugo
Group=hugo
Type=simple
ExecStart=/usr/local/bin/hugo server --source /opt/ara-infra/website --themesDir {{ hugo_directory }}/themes --log --logFile /var/log/hugo/hugo.log --baseURL "https://ara.recordsansible.org/" --appendPort=false
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