From 17fa5ce792fac9314c83472d65009d471f26f778 Mon Sep 17 00:00:00 2001 From: Jeremy Tinley Date: Fri, 15 May 2020 08:17:21 -0700 Subject: [PATCH] sysown/proxysql#2796: Fix systemctl start proxysql-initial and associated documentation in the proxysql.cnf file (#2797) --- etc/proxysql.cnf | 2 +- systemd/system/proxysql.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/proxysql.cnf b/etc/proxysql.cnf index 833713d559..19669df532 100644 --- a/etc/proxysql.cnf +++ b/etc/proxysql.cnf @@ -27,7 +27,7 @@ # file is only used to initial the on-disk database read on the first startup. # # In order to FORCE a re-initialise of the on-disk database from the configuration file -# the ProxySQL service should be started with "service proxysql initial". +# the ProxySQL service should be started with "systemctl start proxysql-initial". # ######################################################################################## diff --git a/systemd/system/proxysql.service b/systemd/system/proxysql.service index 4cbeca237a..6506a57b1c 100644 --- a/systemd/system/proxysql.service +++ b/systemd/system/proxysql.service @@ -8,7 +8,7 @@ RuntimeDirectory=proxysql #PermissionsStartOnly=true #ExecStartPre=/usr/bin/mkdir -p /var/run/proxysql /var/run/proxysql #ExecStartPre=/usr/bin/chown -R proxysql: /var/run/proxysql/ -ExecStart=/usr/bin/proxysql --idle-threads -c /etc/proxysql.cnf +ExecStart=/usr/bin/proxysql --idle-threads -c /etc/proxysql.cnf $PROXYSQL_OPTS PIDFile=/var/lib/proxysql/proxysql.pid #StandardError=null # all output is in stderr SyslogIdentifier=proxysql