-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. Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories
Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories
Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories
Post Description:
Post Tags: shell, init, error, retrieving, current, directory, cannot, access, parent, directories
This Post Has Been Viewed 1677 Times Since Sun Jul 01, 2007 9:32 pm Posted By pack with 4 replies
Next Post »» FIX ERROR: The ScriptAlias directive in httpd.conf overlaps an earlier ScriptAlias
Post Description:
Post Tags: shell, init, error, retrieving, current, directory, cannot, access, parent, directories
This Post Has Been Viewed 1677 Times Since Sun Jul 01, 2007 9:32 pm Posted By pack with 4 replies
Next Post »» FIX ERROR: The ScriptAlias directive in httpd.conf overlaps an earlier ScriptAlias
| 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:
Leave Your Comments [ dejar commentarios ]
Comments and replies About Shell-init: Error Retrieving Current Directory Cannot Access Parent Directories
:: 1 :: #9214 - Reply By webune On Sun Jul 01, 2007 9:36 pm
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:
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:
now try your command again
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
:: 2 :: #45905 - Reply By lastfeel On Mon Mar 17, 2008 3:52 pm
thanks for your help
:: 3 :: #60252 - Reply By M7MoD On Thu Jul 03, 2008 4:53 pm
hello
go to root directory
and
/etc/init.d/named restart
/etc/init.d/named reload
go to root directory
and
/etc/init.d/named restart
/etc/init.d/named reload
:: 4 :: #65070 - Reply By rahul On Wed Aug 06, 2008 12:48 am
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.

