mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 12:02:47 +00:00
Added MySQL to NixOS
svn path=/nixos/trunk/; revision=10306
This commit is contained in:
parent
a73c26875a
commit
f38ed802a6
22
upstart-jobs/mysql.nix
Normal file
22
upstart-jobs/mysql.nix
Normal file
|
@ -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
|
||||
";
|
||||
}
|
Loading…
Reference in a new issue