anchor.diff:  
               mkdir -m 0700 -p ${cfg.pidDir}
               chown -R ${cfg.user} ${cfg.pidDir}
  -        end script
  +          '';
   
  -        respawn ${mysql}/bin/mysqld ${mysqldOptions}
  +        exec = "${mysql}/bin/mysqld ${mysqldOptions}";
   
  -        stop script
  +        postStop =
  +          ''
               pid=$(cat ${pidFile})
               kill "$pid"
               ${mysql}/bin/mysql_waitpid "$pid" 1000
  -        end script
  -      '';
  -    };
  +          '';
  +      };
   
     };
   
  
positive.code: 
      environment.systemPackages = [mysql];
  
      jobs = singleton {
        name = "mysql";
        
        job = ''
          description "MySQL server"
  
          stop on shutdown
  
          start script
              if ! test -e ${cfg.dataDir}; then
                  mkdir -m 0700 -p ${cfg.dataDir}
                  chown -R ${cfg.user} ${cfg.dataDir}
                  ${mysql}/bin/mysql_install_db ${mysqldOptions}
  
negative.code:       };
  
        dataDir = mkOption {
          default = "/var/mysql"; # !!! should be /var/db/mysql
          description = "Location where MySQL stores its table files";
        };
  
  