We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, The script /etc/init.d/proxysql for start/stop ProxySQL should be modified for store /var/run/proxysql/proxysql.sock
start() { echo -n "Starting ProxySQL: " mkdir $DATADIR 2>/dev/null getpid if [ "X$pid" = "X" ] then if [ -d /var/run/proxysql ]; then chmod 1777 /var/run/proxysql else mkdir /var/run/proxysql && chmod 1777 /var/run/proxysql fi if [ -f $OLDDATADIR/proxysql.db ] then if [ ! -f $DATADIR/proxysql.db ] then mv -iv $OLDDATADIR/proxysql.db $DATADIR/proxysql.db chown proxysql $DATADIR/proxysql.db fi fi su - $USER -s /bin/bash -c "proxysql $OPTS" if [ "$?" = "0" ]; then echo "DONE!" return 0 else echo "FAILED!" return 1 fi else echo "ProxySQL is already running." exit 0 fi }
Env:
The text was updated successfully, but these errors were encountered:
Assigning to @pondix
Sorry, something went wrong.
The init script is no longer used for the CentOS 7 build - this uses https://github.com/sysown/proxysql/blob/v2.0.7/systemd/system/proxysql.service instead.
Perhaps this still makes sense for CentOS 6 however the logic can still apply to the systemd unit file.
This will be considered for v2.0.8
Update init script perms for /var/run/proxysql
4278980
#2115
pondix
No branches or pull requests
Hi,
The script /etc/init.d/proxysql for start/stop ProxySQL should be modified for store /var/run/proxysql/proxysql.sock
Env:
The text was updated successfully, but these errors were encountered: