【问题标题】:How to update product.conf file after upgrade application in Ubuntu如何在 Ubuntu 中升级应用程序后更新 product.conf 文件
【发布时间】:2015-12-06 06:02:02
【问题描述】:

我有一个 conf 文件产品,它会在启动时启动产品应用程序。

应用程序文件夹结构:

home/
    jamnes/
          product/
                run.sh

product.conf 文件:

# Product start file
#
# Starts the Product App and respawns when it quits

description     " Product Application"

start on desktop-session-start
stop on runlevel [!2345]

respawn
exec /home/james/product/run.sh

如果用户升级应用程序,我们将放置新版本不同的结构

home/
    jamnes/
           product/
                  run.sh
           new/
              product/
                     run.sh

问题:

如何从 product.conf 文件中指向新版本产品

exec /home/james/new/product/run.sh

【问题讨论】:

    标签: linux ubuntu configuration-files upstart


    【解决方案1】:

    我会在 `/home/jamnes/product' 中使用符号链接 current 指向产品的当前版本。但是您的问题与暴发户或ubuntu根本无关。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-27
      • 2018-12-05
      • 1970-01-01
      • 1970-01-01
      • 2015-07-29
      相关资源
      最近更新 更多