Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to get Byobu to startup with Ubuntu Server 12.04 when the server starts up.

I've figured out how to do this with a screen session but I want it to be in Byobu with all the added features, not in screen.

in start() within an init.d script for screen this is the line that works (after changing the environment to the correct user via su - $USER -c "$USER_INIT; $1" >/dev/null && return 0 --- USER and USER_INIT are both populated properly, tested working via screen):

screen -U -S $SESSIONNAME -d -t $WCAPP -m $WCAPP

replacing screen with byobu or byobu-screen does not work. I have the back-end set to screen.

I DO NOT want to edit the /.byobu/windows file as that does not launch until a user manually starts a byobu back-end.

The $SESSIONNAME I am using is weechat and the $WCAPP variable is weechat-curses, I have no quarrels about using the literal value instead of passing variables.

Thank you.

share|improve this question

1 Answer 1

Open your terminal(CTRL+ALT+T) and then type as

nano /etc/rc.local

and then add this line before exit 0

byobu -S boot-time mycommand &

Then press ctrlx save & close.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.