You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/systemd/system/proxysql-initial.service

14 lines
392 B

[Unit]
Description=High Performance Advanced Proxy for MySQL, this service will reset the database and start ProxySQL
After=network.target
[Service]
Type=oneshot
ExecStartPre=/bin/systemctl set-environment PROXYSQL_OPTS="--initial"
ExecStart=/bin/systemctl start proxysql
ExecStartPost=/bin/systemctl unset-environment PROXYSQL_OPTS
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target