nixpkgs-suyu/upstart-jobs/gw6c.nix
Eelco Dolstra 2fc94b76fe * Eliminate all calls to config.get.
svn path=/nixos/trunk/; revision=9619
2007-11-09 18:49:45 +00:00

28 lines
539 B
Nix

{config, pkgs}:
let
cfg = config.services.gw6c;
procps = pkgs.procps;
gw6cService = import ../services/gw6c {
inherit (pkgs) stdenv gw6c coreutils
procps upstart iputils gnused
gnugrep;
username = cfg.username;
password = cfg.password;
server = cfg.server;
keepAlive = cfg.keepAlive;
everPing = cfg.everPing;
};
in
{
name = "gw6c";
users = [];
groups = [];
job = "
description \"Gateway6 client\"
start on network-interfaces/started
stop on network-interfaces/stop
respawn ${gw6cService}/bin/control start
";
}