在重新启动命令后从命令重新启动机器后,如何继续执行bash脚本? [英] how to continue a bash script after it reboots the machine from the command after the reboot command?

查看:111
本文介绍了在重新启动命令后从命令重新启动机器后,如何继续执行bash脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用bash脚本来安装和设置docker并运行应用程序。该脚本需要重新引导系统,并且应在重新引导后继续。我是BASH的新手,请帮助我解决这个问题。

I'm working on a bash script for installing and setting up docker and run a application. The script needs to reboot the system and should continue after the reboot. I'm new with BASH, please help me getting through this.

谢谢。

推荐答案

尝试将重新启动后需要执行的所有内容放在此处:

Try putting everything that you need to execute after the reboot here:

/etc/rc.local

这篇关于在重新启动命令后从命令重新启动机器后,如何继续执行bash脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆