"update-rc.d: /etc/init.d/unicorn_app: file does not exist" in ubuntu 10.04

Hello guys, I am trying to configure unicorn + nginx in my ubunton 10.04 in linode to deploy my rails application and when I execute the command:

sudo update-rc.d unicorn_app defaults 

I get the following error:

 update-rc.d: /etc/init.d/unicorn_app: file does not exist 

However, I can see the unicorn_app file in the init.d folder. The color of the unicorn_app file unicorn_app red, with a gray color in the ubuntu terminal.

How can I fix this problem?

Thanks!

+6
source share
1 answer

I assume that the β€œred” color in LS means that unicorn_app is a broken symbolic link. Try ls -l /etc/init.d/unicorn_app to see if the file it indicates exists or not.

Alternatively, you can run file /etc/init.d/unicorn_app to see if this is a broken symbolic link or not.

+5
source

Source: https://habr.com/ru/post/916107/


All Articles