ec2-webapp icon indicating copy to clipboard operation
ec2-webapp copied to clipboard

Issues with symbolic link

Open dtan opened this issue 14 years ago • 1 comments

Thanks for this write, i got it through to the step of creating a symbolic link here:

ubuntu$ sudo ln -s /var/myapp/init.d/myapp-httpd /etc/init.d/

my first run through i got this error: update-rc.d: /etc/init.d/myapp-httpd: file does not exist

so i figured i should make the directory structure in the ln command so:

ubuntu$ sudo mkdir /var/myapp/init.d/myapp-httpd

then again: ubuntu$ sudo ln -s /var/myapp/init.d/myapp-httpd /etc/init.d/ ln: creating symbolic link `/etc/init.d/myapp-httpd': File exists

but then when i run the update-rc.d command i get this:

ubuntu$ sudo update-rc.d myapp-httpd defaults update-rc.d: /etc/init.d/myapp-httpd: file does not exist

is there a step i'm missing? should I not be creating the init.d/myapp-httpd folder?

dtan avatar Jun 14 '11 16:06 dtan

whoops...i feel like an idiot. i made a clone of this repo only on my local, and not on my ec2. so basically i would copy these files into my own repository and use them as if they were "originally" apart of the repository and not as some submodule?

dtan avatar Jun 14 '11 16:06 dtan