Start up scripts in debian

Discussion in 'Linux, BSD and Other OS's' started by Addis, Sep 21, 2006.

  1. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    i've installed debian etch release. All is good, except I need to run a shell script on startup as root. Now normally, on other distros I add the commands to the /etc/rc.local script.

    But debian doesn't have that, and doesn't run it when I create it. Anyone know how to get a script to run easily without going too much into run levels etc?
     
  2. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    Good question. Actually, the lack of the ol' fashioned rc.local in Deb is one of my only gripes about the platform. Here's how to implement the old-school rc.local on Deb:

    debian-rc.local

    Or, you could do it automatically with this package: http://www.finnie.org/software/rc-local_1.0-1_all.deb

    ...but I cannot vouch for the contents of that package, as I haven't tried nor inspected it yet.

    -AT
     
  3. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    That's better. thanks.
     
  4. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    No problem ;)
     

Share This Page