Added MySQL to NixOS
svn path=/nixos/trunk/; revision=10306
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
args: with args;
|
||||
|
||||
let
|
||||
|
||||
cfg = config.services.mysql;
|
||||
mysqlService = import ../services/mysql {
|
||||
inherit (pkgs) stdenv mysql;
|
||||
inherit (cfg) port user datadir
|
||||
log_error pid_file;
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
name = "mysql";
|
||||
job = "
|
||||
description \"MySQL server\"
|
||||
|
||||
stop on shutdown
|
||||
|
||||
respawn ${mysqlService}/bin/control start
|
||||
";
|
||||
}
|
||||
Reference in New Issue
Block a user