我想创建一个 crontab 条目,以便它启动屏幕,启动游戏服务器并分离。这是为了以防服务器重新启动并且我希望它自动为我启动它。
0 0 0 0 0(命令)
应该在启动时运行。
它运行一个位于 ~/cube/server.sh 的 shell 文件
linux cron gnu-screen gameserver
cron ×1
gameserver ×1
gnu-screen ×1
linux ×1