Start an application at bootup using Upstart and tmux
daniel Tue, 05/22/2012 - 3:04pm
Create a file in /etc/init/myappname.conf
with these contents
author "daniel.bower"
description "Start myappname at boot time"
start on (local-filesystems and net-device-up IFACE!=lo)
script
su myusername -c "tmux new-session -d 'myAppExecutablePath'"
end script
Tmux reference - You can then connect to the application's console by using "tmux list-sessions" and tmux attach -t 0"
This script could use a lot of improvement as it only starts the app, it cannot stop it.
Loosely based on an onubuntu.blogspot.com post
- Log in to post comments