byobu-enable only changes the user's configuration to automatically load byobu after a shell was initiated. However, as described earlier:<br>> Turning byobu's Start automatically after log in on does not work, because<br>

> there is no login to happen, as the script is started from cron.<br><br><div class="gmail_quote">2012/5/19 Marcos Barbosa <span dir="ltr"><<a href="mailto:marcosestevesbarbosa@gmail.com" target="_blank">marcosestevesbarbosa@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Do you try byobu-enable?<br>
<br>
2012/5/19 Whisperity <<a href="mailto:whisperity@gmail.com">whisperity@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> Dear fellow Ubuntu users,<br>
><br>
> I have an automatation question I'd like to ask from you. My server runs<br>
> some servers which are, unfortunately, not daemons (like Minecraft or Source<br>
> Dedicated Server). I am planning on making them automatically start at boot<br>
> with the @reboot directive in crontab, but I wish their sessions to be<br>
> usable from byobu.<br>
><br>
> Problem being, that byobu does not auto-start. I have written a shell<br>
> script:<br>
><br>
> #!/bin/bash<br>
> screen -dr byobu -X screen -t srcds<br>
><br>
> screen -r byobu -p srcds -X stuff "./start_gmod.sh $(printf '\r')"<br>
><br>
> And I execute it as my nonprivileged user in crontab:<br>
><br>
> @reboot           sourcesrv                    cd /srv/srcds/orangebox &&<br>
> ./hook-byobu.sh<br>
><br>
> However, running this script requires byobu to be started when it runs. If I<br>
> test the script with starting byobu by hand and then executing it from SSH,<br>
> it does order byobu to make a new window and then starts the server.<br>
><br>
> My question being: can I, somehow, automatize the start of byobu into the<br>
> hook-byobu.sh file? I tried adding byobu (the command itself) after the<br>
> shebang-line, but then it hangs until I, by hand, F6 (detach) from byobu.<br>
><br>
> Turning byobu's Start automatically after log in on does not work, because<br>
> there is no login to happen, as the script is started from cron.<br>
><br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> ubuntu-server mailing list<br>
> <a href="mailto:ubuntu-server@lists.ubuntu.com">ubuntu-server@lists.ubuntu.com</a><br>
> <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-server" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-server</a><br>
> More info: <a href="https://wiki.ubuntu.com/ServerTeam" target="_blank">https://wiki.ubuntu.com/ServerTeam</a><br>
<br>
<br>
<br>
--<br>
Marcos Barbosa <<a href="mailto:marcosestevesbarbosa@gmail.com">marcosestevesbarbosa@gmail.com</a>><br>
</font></span></blockquote></div><br>