stopping ftp with pure-uploadscript
Posted: 02 Mar 2010, 06:22
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?
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?