• Christian Hesse's avatar
    use environment file in systemd units for _WSREP_START_POSITION · 6c405904
    Christian Hesse authored
    We used to run `systemctl set-environment` to pass
    _WSREP_START_POSITION. This is bad because:
    
    * it clutter systemd's environment (yes, pid 1)
    * it requires root privileges
    * options (like LimitNOFILE=) are not applied
    
    Let's just create an environment file in ExecStartPre=, that is read
    before ExecStart= kicks in. We have _WSREP_START_POSITION around for the
    main process without any downsides.
    6c405904
CMakeLists.txt 8.35 KB