We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我用的是ubuntu 方法如下: sudo vi /etc/init.d/mentohust 新建文件: #!/bin/sh ### BEGIN INIT INFO # Provides: adb # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Start or stop the adb server. ### END INIT INFO case "$1" in start) mentohust -b ;; stop) mentohust -k ;; restart) mentohust -k mentohust -b esac 之后执行命令: sudo update-rc.d mentohust defaults 今天我换回到gnome rc.local不知为什么失效了,试了半天还是新建一个服务靠谱
Original issue reported on code.google.com by hji...@gmail.com on 2 Apr 2014 at 5:16
hji...@gmail.com
The text was updated successfully, but these errors were encountered:
主要是把-b和-k结合起来使用了。可以考虑修改。
指定后台(daemon)运行方式,-b0不后台运行,这时认证成功后不能关闭终端;-b1、-b2后台运行,前者看不到输出,后者保留输出;-b3后台运行并将输出保存到/tmp/mentohust.log,可以随时打开该文件查看输出。
MentoHUST支持daemon运行(也就是认证成功后可以关闭终端而认证不会中断),当进入daemon运行方式后,是不能像没有进入这一模式时一样通过Ctrl+C退出的,这时如果需要退出就可以使用以下命令来退出认证。
sudo mentohust -k
或者
pkill mentohust
Sorry, something went wrong.
No branches or pull requests
Original issue reported on code.google.com by
hji...@gmail.com
on 2 Apr 2014 at 5:16The text was updated successfully, but these errors were encountered: