Linux 在Ubuntu中升级应用程序后如何更新product.conf文件

Linux 在Ubuntu中升级应用程序后如何更新product.conf文件,linux,ubuntu,configuration-files,upstart,Linux,Ubuntu,Configuration Files,Upstart,我有一个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-se

我有一个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

我会在“/home/jamnes/product”中使用一个符号链接
current
,指向产品的当前版本。但你的问题与upstart或ubuntu完全无关