From 794057684db14a6da26c895e6340abd3555c7068 Mon Sep 17 00:00:00 2001 From: Christopher Troup Date: Fri, 10 Feb 2017 19:57:48 -0500 Subject: [PATCH] Add chkconfig support Installing the RPM via `rpm -i proxysql-.rpm` generates an error on systems that have chkconfig -- it requires special syntax at the top of the init.d script. --- etc/init.d/proxysql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/init.d/proxysql b/etc/init.d/proxysql index 585488a2d..6d6b90bfc 100755 --- a/etc/init.d/proxysql +++ b/etc/init.d/proxysql @@ -1,5 +1,9 @@ #!/bin/bash # +# chkconfig: 345 99 01 +# description: High Performance and Advanced Proxy for MySQL and forks. \ +# It provides advanced features like connection pool, query routing and rewrite, \ +# firewalling, throttling, real time analysis, error-free failover ### BEGIN INIT INFO # Provides: proxysql # Required-Start: $local_fs