Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have a few mechanisms easily available:</p> <p>The two most common mechanisms:</p> <p>Adding an <a href="http://upstart.ubuntu.com/getting-started.html" rel="nofollow">upstart job definition</a> file. This looks easy, but does limit the distributions that can use your provided script to a handful of newer ones (Ubuntu, Google's Chrome distribution, Fedora, probably RHEL?).</p> <p>Adding a <a href="http://wiki.debian.org/LSBInitScripts" rel="nofollow">sysv-init initscript</a>. init-scripts are harder to write, but have much more flexibility in providing more command line arguments for sysadmins to use. They are also supported nearly everywhere, even distros which have switched (some or most) of their initscripts over to Upstart jobs.</p> <p>I don't see it often, it is more a system-administrator choice than a software developer choice, but you can also use the system Vixie <code>cron(8)</code> facility to start programs at boot.</p> <p>You can add entries to the system crontab in <code>/etc/cron.d/*</code>; Vixie cron supports a <code>@reboot</code> specifier which is excellent for this task.</p> <p>Or, you can add an entry to your own personal <code>crontab(5)</code> file; again, Vixie cron's <code>@reboot</code> works for users too, but you cannot run an <em>interactive</em> <code>sudo(8)</code> from a <code>crontab(5)</code>. See the <code>NOPASSWD</code> documentation in <code>sudoers(5)</code> if you want to use your own personal <code>crontab(5)</code> file, but be warned the other admins on the machine may hate this idea.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload