Page 1 of 1

stopping ftp with pure-uploadscript

Posted: 02 Mar 2010, 06:22
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

Posted: 04 Mar 2010, 09:21
by ForumAdmin
Thank you for that and the solution, I've incorporated it and some other stability changes for the restart in v1.21