Package: vsftpd
Version: 2.0.3-1
Severity: normal
Tags: patch

It's becoming more common to mount /var/run as a tmpfs (e.g. Ubuntu does
this now); this does occasionally mean that daemon packages need to be
changed to create subdirectories of /var/run at startup. Could you
change the init script to do this?

diff -u vsftpd-2.0.3/debian/vsftpd.init.d vsftpd-2.0.3/debian/vsftpd.init.d
--- vsftpd-2.0.3/debian/vsftpd.init.d
+++ vsftpd-2.0.3/debian/vsftpd.init.d
@@ -20,6 +20,7 @@
 case "$1" in
   start)
     log_begin_msg "Starting FTP server: $NAME"
+    [ -d /var/run/vsftpd ] || mkdir -p /var/run/vsftpd
     start-stop-daemon --start --background -m --pidfile 
/var/run/vsftpd/vsftpd.pid --exec $DAEMON && log_end_msg 0 || log_end_msg 1
     ;;
   stop)

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to