summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-07 16:18:24 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-07 16:38:57 +0100
commit000962c3fb53dcbe07e365875623d2d19fb4cdf6 (patch)
tree69b539d515e100cca8b72b10b24fd1fe7fef1d70 /nixos/modules/services/networking
parent10e31f6de73536ff545e1799ae72c9f2ab423202 (diff)
downloadnixlib-000962c3fb53dcbe07e365875623d2d19fb4cdf6.tar
nixlib-000962c3fb53dcbe07e365875623d2d19fb4cdf6.tar.gz
nixlib-000962c3fb53dcbe07e365875623d2d19fb4cdf6.tar.bz2
nixlib-000962c3fb53dcbe07e365875623d2d19fb4cdf6.tar.lz
nixlib-000962c3fb53dcbe07e365875623d2d19fb4cdf6.tar.xz
nixlib-000962c3fb53dcbe07e365875623d2d19fb4cdf6.tar.zst
nixlib-000962c3fb53dcbe07e365875623d2d19fb4cdf6.zip
vsftpd: Run in the background and log to syslog (i.e. journal)
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/vsftpd.nix4
1 files changed, 3 insertions, 1 deletions
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";
       };
 
   };