fabric appears to start apache2 but doesn't

后端 未结 6 631
不思量自难忘°
不思量自难忘° 2020-12-29 04:27

I\'m using fabric to remotely start a micro aws server, install git and a git repository, adjust apache config and then restart the server.

If at any point, from the

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-29 05:15

    This is an instance of this issue and there is an entry in the FAQ that has the pty answer. Unfortunately on CentOS 6 doesn't support pty-less sudo commands and I didn't like the nohup solution since it killed output.

    The final entry in the issue mentions using sudo('set -m; service servicename start'). This turns on Job Control and therefore background processes are put in their own process group. As a result they are not terminated when the command ends.

提交回复
热议问题