From 000962c3fb53dcbe07e365875623d2d19fb4cdf6 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 7 Nov 2013 16:18:24 +0100 Subject: [PATCH] vsftpd: Run in the background and log to syslog (i.e. journal) --- nixos/modules/services/networking/vsftpd.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/vsftpd.nix b/nixos/modules/services/networking/vsftpd.nix index e398230e1681..cfd8530717e3 100644 --- a/nixos/modules/services/networking/vsftpd.nix +++ b/nixos/modules/services/networking/vsftpd.nix @@ -83,10 +83,11 @@ let ${optionalString (cfg.userlistFile != null) '' userlist_file=${cfg.userlistFile} ''} - background=NO + background=YES listen=YES nopriv_user=vsftpd secure_chroot_dir=/var/empty + syslog_enable=YES ''; in @@ -185,6 +186,7 @@ in serviceConfig.ExecStart = "@${vsftpd}/sbin/vsftpd vsftpd ${configFile}"; serviceConfig.Restart = "always"; + serviceConfig.Type = "forking"; }; };