Skip to content

Commit

Permalink
MDEV-20053: update systemd unit
Browse files Browse the repository at this point in the history
Now that we have proper paths in `galera_recovery` changing the
directory is no longer required.
  • Loading branch information
eworm-de authored and grooverdan committed Jun 22, 2024
1 parent 1054732 commit 3d2e54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support-files/mariadb.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ PermissionsStartOnly=true
# Do not panic if galera_recovery script is not available. (MDEV-10538)
ExecStartPre=/bin/sh -c "systemctl unset-environment _WSREP_START_POSITION"
ExecStartPre=/bin/sh -c "[ ! -e @bindir@/galera_recovery ] && VAR= || \
VAR=`cd @bindir@/..; @bindir@/galera_recovery`; [ $? -eq 0 ] \
VAR=`@bindir@/galera_recovery`; [ $? -eq 0 ] \
&& systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1"

# Needed to create system tables etc.
Expand Down

0 comments on commit 3d2e54f

Please sign in to comment.