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?
stopping ftp with pure-uploadscript
-
- Moderator
- Posts: 1524
- Joined: 01 Oct 2008, 09:24