Greetings..
If you are getting this error while installing or starting some service like
root@myserver1[/home/jayesh/check]# /etc/init.d/pure-ftpd status
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
pure-ftpd (pid 18869 29155) is running…
—— ——— ——- —— ——————————————-
| PID | Login |For/Spd| What | File/IP |
—— ——— ——- —— ——————————————-
|18869 | asesoria| 00:12 | IDLE | |
| ” | ” | ” | ” | -> 1.1.1.1 |
—— ——— ——- —— ——————————————-
Then that error says that its not able to locate the (cwd) corrent working directory, so it happens because you’re still in the “check” directory which doesn’t exist anymore. Go to another directory, and you’ll see the warnings are gone.
Enjoy..
Ça parait con mais après 10min de galère en plein milieu d'un tuto long comme le bras, cette erreur faisait chier..