我正在使用PalletOps和 VmFest ,我想在箱子{{1}中使用storm
来exec-checked-script
},
storm_codeship.clj
还尝试了没有 36 (defn install [settings]
54 (exec-checked-script "start dev-zookeeper"
~ 55 ("nohup ~/bin/storm/bin/storm dev-zookeeper 1> devout.log 2>deverror.log &"))
56 (exec-checked-script "start storm-nimbus"
~ 57 ("nohup ~/bin/storm/bin/storm nimbus 1> nuibusout.log 2>nimbuserror.log &"))
58 (exec-checked-script "start storm-supervisor"
~ 59 ("nohup ~/bin/storm/bin/storm supervisor 1> superout.log 2>supererror.log &"))
60 (exec-checked-script "start storm-drpc"
~ 61 ("nohup ~/bin/storm/bin/storm drpc 1> drpcout.log 2>drpcerror.log &")))
,
nohup
虚拟机中没有任何效果,没有任何日志文件的气味。
当我进入虚拟机并手动执行同一组命令时,我发现它们使用生成的日志文件。
VM的权限如下,
36 (defn install [settings]
54 (exec-checked-script "start dev-zookeeper"
~ 55 ("~/bin/storm/bin/storm dev-zookeeper 1> devout.log 2>deverror.log &"))
56 (exec-checked-script "start storm-nimbus"
~ 57 ("~/bin/storm/bin/storm nimbus 1> nuibusout.log 2>nimbuserror.log &"))
58 (exec-checked-script "start storm-supervisor"
~ 59 ("~/bin/storm/bin/storm supervisor 1> superout.log 2>supererror.log &"))
60 (exec-checked-script "start storm-drpc"
~ 61 ("~/bin/storm/bin/storm drpc 1> drpcout.log 2>drpcerror.log &")))
我认为这不是一个许可问题,我可能会遗漏哪些内容?
答案 0 :(得分:0)
我预计发生的事情是exec-checked-script
启动的shell在子进程自行分离之前退出。
避免这种情况的一种方法是打开shell中的作业控制
(exec-checked-script
"start dev-zookeeper"
("set" "-m")
("~/bin/storm/bin/storm dev-zookeeper 1> devout.log 2>deverror.log &"))