Trying to run
#!/bin/sh
# byobu_launcher.sh ver 20170915122301 Copyright 2017 alexx, MIT Licence ver 1.0
byobu new-session -d -s $USER
# mongod
byobu new-window -t $USER:1 -n 'MLT'
byobu send-keys "/home/username/scripts/mlt.sh" C-m
I'm using this template with the correct info put in
.
[Unit] Description=byobu
[Service] ExecStart=/root/scripts/byobu.sh Restart=always
[Install] WantedBy=multi-user.target
After starting the service I get this error
Apr 30 14:36:29 ubuntu byobu.sh[4141]: Cannot run byobu because [] does not own []
Apr 30 14:36:29 ubuntu byobu.sh[4141]: Cannot run byobu because [] does not own []
Apr 30 14:36:29 ubuntu byobu.sh[4141]: Cannot run byobu because [] does not own []
Not sure how to fix or change the ownership.
Strangely it works on rc.local, but I think getting it to work on Systemd would be better.