Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am trying configure unicorn + nginx in my ubunton 10.04 in linode for deploy my rails app and when I execute the command:

sudo update-rc.d unicorn_app defaults

I get the next error:

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

However I can see the unicorn_app file in init.d folder. The unicorn_app file color is red with background grey in ubuntu terminal.

How can I fix this problem?

like image 357
hyperrjas Avatar asked May 18 '12 16:05

hyperrjas


1 Answers

I guess the "red" colour in LS means that unicorn_app is a broken symbolic link. Please try ls -l /etc/init.d/unicorn_app, see if the file it points to exist or not.

In addition, you may run file /etc/init.d/unicorn_app to see if it is a broken symbolic link or not.

like image 164
Raymond Tau Avatar answered Oct 19 '22 06:10

Raymond Tau