Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, Let me begin by saying my Linux experience consists of the past few hours. I'm trying to move my server from a Windows XP based server to a Debian ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    2

    Autostarting stuff

    Hi,

    Let me begin by saying my Linux experience consists of the past few hours. I'm trying to move my server from a Windows XP based server to a Debian based one. So far I've managed to compile & install Apache, PHP, and MySQL, but have some problems.

    How can I add things to auto start when the system boots up?

    Namely, I'd like to run:
    Code:
    /usr/local/httpd/bin/httpd -DSSL
    /usr/local/mysql/bin/mysqld_safe
    gksu -g /usr/sbin/firestarter
    I've done some searches, and found things about "rcS.d", "init.d", "symlinks", and ".sh" files, but have absolutely no idea what any of them mean (nor can I find anything that makes sense to a long-time Windows user on Google).

    Please help a hapless Linux noob

    Thanks!

  2. #2
    Just Joined! Scratch_'s Avatar
    Join Date
    Oct 2006
    Location
    In your closet.
    Posts
    28
    man update-rc.d

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    2
    Alright, so it looks like this command lets me install "init scripts" to run commands. It mentions a "runlevel" and "NN", which I assume only specify when the script is executed in relation to the others (higher values go later). Is that correct?

    In that case, only one question remains: what is an init script, and how can I make three to run those commands above?

  4. #4
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    why dont you install apache2 from the debian repos?
    if you install apache trough apt , it install the init script too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •