need to create a file in /etc/init.d

Asked by Bambitheman

have tried as root to create a file in /etc/init.d/ using the terminal by the following method

cd /etc/init.d
make -f <filename>

However I receive the following error: No rule to make target <filename> stop

I have also tried using VI, with no success it does not allow me to save to the target folder /etc/init.d

I can save to /sbin but symlinking using ln -s still won't get me to have the file in /etc/init.d

Any suggestions are gratefully received

Output of uname -a is below for information
GNU/Linux 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Ahmad Tarek
Solved:
Last query:
Last reply:
Revision history for this message
Best Ahmad Tarek (ahmadtarek) said :
#1

can you try:
sudo touch /etc/init.d/<filename>

or
sudo vi /etc/init.d/<filename>

Revision history for this message
Bambitheman (johnobamber) said :
#2

Thanks Ahmad Tarek, that solved my question.