Add systemd unit for proxysql --inital

Description

Would be nice to pull this commit (that stems from https://github.com/sysown/proxysql/issues/2334) which adds a systemd unit that allows users to run proxysql --initial.

This would re-align us back with our previous releases, where SysV based systems did had the script, for example a quick grep shows:

And also would align us with upstream and, more importantly, with documentation: where we can read:

Reinitializing ProxySQL from the config file (after first startup the DB file is used instead of the config file):
# If you are using the init script run:
/etc/init.d/proxysql initial
# or
service proxysql initial
# If you are using the systemd unit file run:
systemctl start proxysql-initial
# or
service proxysql-initial start

And we do defer users to that documentation in where we link like:

The ProxySQL documentation provides information on installing and running ProxySQL and the ProxySQL admin tools.

So it does look like we should be providing such functionality either as a systend unit or via some other specialized command, but upstream compatibility seems most sensible idea.

Hope the FR makes sense!

Environment

None

AFFECTED CS IDs

CS0048401

Activity

Show:

Venkatesh Prasad September 6, 2024 at 9:52 AM

This will be fixed in ProxySQL 2.6.5

Done

Details

Assignee

Reporter

Planned Version/s

Fix versions

Affects versions

Priority

Smart Checklist

Created July 23, 2024 at 3:45 AM
Updated September 12, 2024 at 11:49 AM
Resolved September 6, 2024 at 12:06 PM