vsftpd: Run in the background and log to syslog (i.e. journal)
This commit is contained in:
parent
10e31f6de7
commit
000962c3fb
@ -83,10 +83,11 @@ let
|
|||||||
${optionalString (cfg.userlistFile != null) ''
|
${optionalString (cfg.userlistFile != null) ''
|
||||||
userlist_file=${cfg.userlistFile}
|
userlist_file=${cfg.userlistFile}
|
||||||
''}
|
''}
|
||||||
background=NO
|
background=YES
|
||||||
listen=YES
|
listen=YES
|
||||||
nopriv_user=vsftpd
|
nopriv_user=vsftpd
|
||||||
secure_chroot_dir=/var/empty
|
secure_chroot_dir=/var/empty
|
||||||
|
syslog_enable=YES
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -185,6 +186,7 @@ in
|
|||||||
|
|
||||||
serviceConfig.ExecStart = "@${vsftpd}/sbin/vsftpd vsftpd ${configFile}";
|
serviceConfig.ExecStart = "@${vsftpd}/sbin/vsftpd vsftpd ${configFile}";
|
||||||
serviceConfig.Restart = "always";
|
serviceConfig.Restart = "always";
|
||||||
|
serviceConfig.Type = "forking";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user