在應用程式中設定新貴時出現錯誤

在應用程式中設定新貴時出現錯誤

我所做的是

sudo emacs /etc/init/app.conf

然後我為我的暴發戶編寫程式碼

# application Server

description "applicationServer"
author      "Rahul Mehta <[email protected]"

start on (net-device-up
    and local-filesystems
    and runlevel [2345])
stop on runlevel [016]

exec /lily/bin/launch-hadoop

當我嘗試保存此文件時,它顯示:

/etc/init/: no such directory

我需要做什麼來解決這個問題。

使用Ubuntu 8.04。

在 Ubuntu 11.04 上它給了我這個錯誤

start: Job failed to start

答案1

Ubuntu 8.04 包含舊版本的 Upstart,其設定檔儲存在/etc/event.d.因此,您應該將設定檔放在該目錄中,或升級到更新版本的 Ubuntu,將 Upstart 設定檔儲存在/etc/init.

相關內容