Write criproxy log to corresponding folder
Change-Id: I334ec9316258cc62e69bc5c0bd26b10b5a8fd6ce
Rekated-PROD: PROD-27425 (PROD:27425)
diff --git a/kubernetes/_common.sls b/kubernetes/_common.sls
index 88a9fcd..2fc7495 100644
--- a/kubernetes/_common.sls
+++ b/kubernetes/_common.sls
@@ -134,6 +134,12 @@
- group: root
- mode: 0750
+/var/log/criproxy:
+ file.directory:
+ - user: root
+ - group: root
+ - mode: 0750
+
/etc/criproxy/node.conf:
file.managed:
- user: root
diff --git a/kubernetes/files/systemd/criproxy.service b/kubernetes/files/systemd/criproxy.service
index 9980501..3bb3961 100644
--- a/kubernetes/files/systemd/criproxy.service
+++ b/kubernetes/files/systemd/criproxy.service
@@ -24,7 +24,7 @@
{%- endif %}
-listen /var/run/criproxy.sock \
-v 3 \
- -alsologtostderr \
+ -log_dir=/var/log/criproxy \
{%- if salt['pkg.version_cmp'](version,'1.8') < 0 %}
-apiVersion {{ version }} \
{%- endif %}