mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
390d2adb91
svn path=/nixos/trunk/; revision=10544
23 lines
308 B
Nix
23 lines
308 B
Nix
args: with args;
|
|
|
|
let
|
|
|
|
cfg = config.services.mysql;
|
|
mysqlService = import ../services/mysql {
|
|
inherit (pkgs) stdenv mysql;
|
|
inherit (cfg) port user dataDir
|
|
logError pidFile;
|
|
};
|
|
|
|
in
|
|
{
|
|
name = "mysql";
|
|
job = "
|
|
description \"MySQL server\"
|
|
|
|
stop on shutdown
|
|
|
|
respawn ${mysqlService}/bin/control start
|
|
";
|
|
}
|