Making sure pure-upload is loaded on crashes and restarts.
Posted: 05 Dec 2009, 21:36
I got things out of order and when I first installed it, I restarted FTP before starting /etc/init.d/pure-uploadscript, which crashed FTP until I figured out I had to have /etc/init.d/pure-uploadscript running first.
Noticed on a reboot, though, if /etc/init.d/pure-uploadscript crashes (which would crash FTP itself and cause checksrvd to restart pure-ftpd), there doesn't seem to be anything to tell pure-uploadscript it to come back up when FTP comes back up, unless I missed something.
I added:
To /etc/init.d/pure-ftpd to cover that possibility and it appears to work fine. It may be something (or something similar) you want to add - unless I missed the failsafe somewhere.
Noticed on a reboot, though, if /etc/init.d/pure-uploadscript crashes (which would crash FTP itself and cause checksrvd to restart pure-ftpd), there doesn't seem to be anything to tell pure-uploadscript it to come back up when FTP comes back up, unless I missed something.
I added:
Code: Select all
#!/bin/bash
#
# Startup script for the pure-ftpd FTP Server $Revision: 1.3 $
#
# chkconfig: 2345 85 15
# description: Pure-FTPd is an FTP server daemon based upon Troll-FTPd
# processname: pure-ftpd
# pidfile: /var/run/pure-ftpd.pid
# config: /etc/pure-ftpd.conf
echo $"/etc/init.d/pure-uploadscript restart"
# RedHat or Suse?