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:
parent
e7612fc889
commit
f026c4e012
@ -1,7 +0,0 @@
|
||||
/var/log/hugo/*.log {
|
||||
rotate 14
|
||||
size 10M
|
||||
missingok
|
||||
compress
|
||||
copytruncate
|
||||
}
|
@ -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 }}"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user