Make fail2ban a normal systemd service in nixos module.

This commit is contained in:
Rob Vermaas 2013-07-25 15:40:20 +02:00
parent 73284567cc
commit c5f6a08750

@ -98,11 +98,12 @@ in
}
];
jobs.fail2ban =
systemd.services.fail2ban =
{ description = "Fail2ban intrusion prevention system";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
startOn = "started networking";
path = [ pkgs.fail2ban pkgs.iptables ];
preStart =
@ -113,7 +114,7 @@ in
mkdir -p /var/run/fail2ban -m 0755
'';
exec = "fail2ban-server -f";
serviceConfig.ExecStart = "${pkgs.fail2ban}/bin/fail2ban-server -f";
postStart =
''