Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
/etc/init.d/.depend.stop

My Ubuntu 12.04 The system shuts down normally not get error message can't not open

 / etc / init.d / .depend.stop
    no such file of directory

See picture

http://screencloud.net//img/screenshots/21c7280b39f072361ac838005de4ab1a.png

What can I do?

share|improve this question
    
Does this file exist? Post output of ls -la /etc/init.d | grep depend –  Fred Thomsen May 14 '13 at 14:25
add comment

2 Answers

I don't know what they're for but here are three commands that will create these files and fill them with the same content as my copies of /etc/init.d/.depend.{stop,start,boot}

sudo install -b -m 644 <(<<EOF
TARGETS =
EOF) /etc/init.d/.depend.stop

sudo install -b -m 644 <(<<EOF
TARGETS =
INTERACTIVE =
EOF) /etc/init.d/.depend.start

sudo install -b -m 644 <(<<EOF
TARGETS =
INTERACTIVE =
EOF) /etc/init.d/.depend.boot
share|improve this answer
1  
Ok I have created three files {stop, start, boat} With the same content (not tested) –  Heiko Schäfer May 14 '13 at 15:09
add comment

@Oli's answer should create those files for you, but if you want to shut down your system try to use:

sudo shutdown -P now
share|improve this answer
    
or the powerbutton or the shut down function built in the system.... –  Alvar May 14 '13 at 16:31
    
yes I just thought in this case rebooting the machine might solve his problem, but in that case sudo reboot would be better I guess... –  skepticscript May 14 '13 at 16:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.