简体   繁体   中英

“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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM