21
votes
5answers
14k views

How can I run/stop/relaunch an application automatically, at boot/login/some other time?

How do you make a script or app to run or stop running automatically when the system is booted, a user logs on, at a specific time, when a disk is attached, etc.?