BowerStudios.com

  • My Lab
  • Family
  • Friends
  • Professional
  • About
Home

Start an application at bootup using Upstart and tmux

daniel —Tue, 05/22/2012 - 3:04pm

  • Linux

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.

Upstart reference

Loosely based on an onubuntu.blogspot.com post

  • Log in to post comments

Navigation

  • Search
  • Recent content
  • Contact Me
  • Mail
  • Pass Hasher
  • Bower Studios Admin

Quotes

daniel —Sat, 09/09/2006 - 10:11am

If you are out to describe the truth, leave elegance to the tailor.

—

Albert Einstein

  • Log in to post comments
  • daniel's quotes

Popular content

Last viewed:

  • How much ram does the machine have?
  • Quick CVS pserver refresher - On Ubuntu
  • Namecheap SSL Reissue bug
  • Get information about installed encrypted drives and raid drives at command line
  • Add BouncyCastle libs to Runtime of DropWizard

Copyright 2022 Daniel Bower
  • My Lab
  • Family
  • Friends
  • Professional
  • About