[英]Linux - Automatically sending processes to background
当我运行命令(即apt-get update)时,我的服务器会自动将进程发送到后台(就像我在命令后附加&一样)。 你们有没有遇到过这个问题? 我到处搜寻,找不到与此相关的任何内容。 这是在Wheezy服务器上。
以下是自动输出到后台的命令输出示例:
debian-transmission@emachine-debian:~$ flexget --discover-now
2013-10-10 23:15 VERBOSE discover tv_shows Discovering 38 titles ...
2013-10-10 23:15 INFO discover tv_shows Ignoring interval because of --discover-now
2013-10-10 23:15 VERBOSE est_series tv_shows The X Factor (US) S03E11 does not exist in tvrage database, assuming unreleased
2013-10-10 23:15 INFO task tv_shows Plugin discover has requested task to be ran again after execution has completed.
2013-10-10 23:15 VERBOSE est_series tv_shows The Walking Dead S03E17 does not exist in tvrage database, assuming unreleased
2013-10-10 23:15 VERBOSE est_series tv_shows Supernatural S06E23 does not exist in tvrage database, assuming unreleased
2013-10-10 23:15 VERBOSE est_series tv_shows Falling Skies S03E11 does not exist in tvrage database, assuming unreleased
[1]+ Stopped flexget --discover-now
您的FlexGet和apt-get命令可能是别名的,或者您可能具有shell脚本来拦截它们。 还有其他命令在后台启动(关于ls,touch,mkdir等)吗?
which flexget
文件which apt-get
文件 查看FlexGet( http://flexget.com/wiki/Plugins/exec ),它建议使用“允许后台”选项,但表示您(可能)需要“启动”命令。
*通常,FlexGet将等待给定命令完成,以便它可以捕获返回状态并记录输出。 但是,如果该命令需要很长时间才能运行(例如直接下载大文件),它将阻止进一步处理,直到命令完成。 要将命令派生到后台进程中,以便FlexGet继续进行处理而没有延迟,您不仅需要在命令末尾添加&符,还必须使用{{allow_background}}选项。 注意,此选项还将阻止FlexGet确定命令是否失败,因此不会重试。*
*如果在后台执行任务时遇到问题,请尝试使用“开始”命令。 在上面的示例中,设置“ allow_background:yes”并附加&仍不会使该过程成为背景。*
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.