stopping ftp with pure-uploadscript

Post Reply
oscarjr
Junior Member
Posts: 1
Joined: 02 Mar 2010, 04:14

stopping ftp with pure-uploadscript

Post by oscarjr »

hi all,
when stopping ftp with "/etc/rc.d/init.d/pure-uploadscript stop" I sometimes see this error message:
==========================================================
Stopping pure-authd:
/etc/rc.d/init.d/pure-uploadscript: line 45: [: 25771: unary operator expected
==========================================================

this seems to be because there were more than one pure-ftpd processes running at that time. This can be corrected by changing the following line in /etc/rc.d/init.d/pure-uploadscript

From:
==========================================================
stop)
/etc/init.d/pure-ftpd stop
if [ `$PIDOF pure-ftpd` ]; then
==========================================================
To:
==========================================================
stop)
/etc/init.d/pure-ftpd stop
if [ `$PIDOF -s pure-ftpd` ]; then
==========================================================

can this be added in future updates? or should I look into finding out why I have more than one pure-ftpd running? :D
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Post by ForumAdmin »

Thank you for that and the solution, I've incorporated it and some other stability changes for the restart in v1.21
Post Reply