Wallpapers Forums Login

Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories

i was wondering if you can help me, im getting this error whenver i try to restart a service in my server:
-bash: etc/init.d/named: No such file or directory
[root@server install]# /etc/init.d/named stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping named:                                            [  OK  ]
[root@server install]# /etc/init.d/mysqld stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping MySQL:                                            [  OK  ]
[root@server install]# /etc/init.d/httpd stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Stopping httpd:                                            [  OK  ]
[root@server install]# /etc/init.d/postfix stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Shutting down postfix:                                     [  OK  ]
[root@server install]# /etc/init.d/proftpd stop
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Shutting down proftpd:                                     [  OK  ]
[root@server install]#
[root@server install]# cd /
[root@server /]# /etc/init.d/httpd start
Starting httpd: [Mon Jul 02 04:39:16 2007] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 1001 will probably never match because it overlaps an earlier ScriptAlias.
                                                           [  OK  ]
what can i do. i heard that you guys with www.webune.com can help me with this error.
rajeswari Wed Mar 21, 2012
Thanks a lot
debashish Tue Jan 17, 2012
this can also happen when another process deletes this directory and recreates it, for eg. if you are in the dir notes in one shell window and another process deleted this directory and then created again with the same name at the same location. To resolve this just do to parent dir once and come back
Majed Sun Sep 11, 2011
thanks for the help
Manoj Sat Sep 10, 2011
Yes, solved the problem. But problem starts again sometimes. Is there any permanent solution for this problem.
Deepak Thu Aug 18, 2011
wowww
I was thinking it WAS a serious and big problem
But you guys are awesome
Its done
HIF Thu Jan 06, 2011
Thanks! I have never thought one could have such problem! :) Now I take it an account.
rahul Wed Aug 06, 2008
pls come out from that directory & restart service...i guess it will help you out..because i had same problem & got solution from one article that.
M7MoD Thu Jul 03, 2008
hello


go to root directory

and

/etc/init.d/named restart
/etc/init.d/named reload
lastfeel Mon Mar 17, 2008
thanks for your help
webune Sun Jul 01, 2007
shell-init: error retrieving current directory: getcwd:

as for this error:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

If you are getting this error while installing or starting some service like

COMMAND:
/etc/init.d/httpd restart


shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Shutting down httpd:

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.

so just send this command
COMMAND:
cd /


now try your command again

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5