-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6c7586228c70
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d2905ff5591f
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 5 commits
- 4 files changed
- 1 contributor
Commits on May 31, 2019
-
nixos/mysql: use systemd.tmpfiles to setup dataDir and pidDir
We need to keep using `RuntimeDirectory=mysqld`, which translates to `/run/mysqld`, as this is used for the location of the file socket, that could differ with what is configured via `cfg.pidDir`.
Configuration menu - View commit details
-
Copy full SHA for 50dda81 - Browse repository at this point
Copy the full SHA 50dda81View commit details -
nixos/mysql: reformat, move logical steps into variables
define commands like "waiting for the mysql socket to appear" or "setup initial databases" in a let expression, so the main control flow becomes more readable.
Configuration menu - View commit details
-
Copy full SHA for 25494cc - Browse repository at this point
Copy the full SHA 25494ccView commit details -
nixos/mysql: run as mysql user and group
As we don't need to setup data directories from ExecStartPre= scripts anymore, which required root, but use systemd.tmpfiles.rules instead, everything can be run as just the mysql user.
1Configuration menu - View commit details
-
Copy full SHA for edd10c1 - Browse repository at this point
Copy the full SHA edd10c1View commit details -
nixos/mysql: drop services.mysql.pidDir
mysql already has its socket path hardcoded to to /run/mysqld/mysqld.sock. There's not much value in making the pidDir configurable, which also points to /run/mysqld by default. We only seem to use `services.mysql.pidDir` in the wordpress startup script, to wait for mysql to boot up, but we can also simply wait on the (hardcoded) socket location too. A much nicer way to accomplish that would be to properly describe a dependency on mysqld.service. This however is not easily doable, due to how the apache-httpd module was designed.
Configuration menu - View commit details
-
Copy full SHA for 5ea7a3e - Browse repository at this point
Copy the full SHA 5ea7a3eView commit details -
nixos/mysql: don't run parts of mysqld.service as root (#61589)
nixos/mysql: don't run parts of mysqld.service as root
Configuration menu - View commit details
-
Copy full SHA for d2905ff - Browse repository at this point
Copy the full SHA d2905ffView commit details
There are no files selected for viewing