Created
June 12, 2021 19:56
-
-
Save kwilczynski/f2729d8fad6b937d4ed8994b7afe9299 to your computer and use it in GitHub Desktop.
A dummy systemd Unit to fix Nginx error_log problem even when /dev/null path is set
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Dummy unit to create log directory for Nginx | |
After=network.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/mkdir -p /var/log/nginx | |
ExecStart=/bin/chown root:adm /var/log/nginx | |
ExecStart=/bin/chmod 755 /var/log/nginx | |
[Install] | |
WantedBy=nginx.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment