Results 1 to 7 of 7

Thread: how do I start Apache and samba at bootup time?

  1. #1
    Junior Member registered user
    Join Date
    Apr 2003
    Location
    Warsaw, IN
    Posts
    23

    how do I start Apache and samba at bootup time?

    I have Knoppix 3.3 installed on my hard drive,

    how do I auto start Apache and Samba at startup?

    I keep looking for a "services' application like redhat has,
    but i don't see one in here where's it at?

  2. #2
    Junior Member registered user
    Join Date
    Apr 2003
    Location
    Warsaw, IN
    Posts
    23

    Re: how do I start Apache and samba at bootup time?

    okay, then can you guys at least tell me how to
    start apache? httpd start doesn't work like it does in other distro's

    I'm actually suprised Samba doesn't start at startup,
    thats another question I get alot how to share files between windows and Linux, so you'd think samba would start at startup time by default.
    I dunno why its not.

  3. #3
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    You could try and add a line at the end of the /etc/bootmisc.sh file, Whatever works from the command-line. I've done this for lots of stuff (too much to mention!) - rmmod/modprobe/start firewall/dma on etc. etc.

    I'm not sure if this is the 'correct' method, but it does work.

    bootmisc.sh is only in the Debian style HD install, if you do a Knoppix style install you'll have to add a script file in init.d or the rcX.d level you boot into (I think).

    Stu.....

    (I'm a newbie, so apologise if this is wrong, in advance!)

  4. #4
    Member registered user
    Join Date
    Sep 2003
    Posts
    50
    apt-get install rcconf

    Than from console turn on/off to your hearts desire.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: how do I start Apache and samba at bootup time?

    Quote Originally Posted by bubazoo
    okay, then can you guys at least tell me how to
    start apache?
    Start here

  6. #6
    Junior Member registered user
    Join Date
    Apr 2003
    Location
    Warsaw, IN
    Posts
    23
    Quote Originally Posted by dave52355
    apt-get install rcconf

    Than from console turn on/off to your hearts desire.
    problem with that is,

    "can't connect to security.debian.org"
    "can't connect to non-us.debian.org"
    "can't connect to people.debian.org"

    same errors I got lastnight

    Debian.org site is down.
    only mirror that works right now is
    http://www.de.debian.org,
    whcih means the apt-get updates still won't work
    until they get the site fixed. who knows when that'll be
    its been down so far since Thursday

  7. #7
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    Podunk, Idaho, USA
    Posts
    470
    To do this the manual way ...
    (su to root in konsole, then you could copy and paste using your mouse)

    do this:
    ls /etc/init.d
    and see if there are entries for apache and samba in there, I would think so, but check.

    Then check to see if things are set up OK so do this:
    /etc/init.d/apache start
    and
    /etc/init.d/samba start

    this checks to see if the daemons will start without errors, they may have to be configured before the daemons will run properly.

    Once everything is OK, apache and samba are configured and able to start without errors then look at /etc/inittab for your runlevel id:
    cat /etc/inittab | grep ^id:

    on my debian system I get:
    id:2:initdefault:

    So then on my system I would use:

    ln -s /etc/init.d/apache /etc/rc2.d/S91apache
    ln -s /etc/init.d/samba /etc/rc2.d/S20samba

    to start the daemons, substitute your runlevel number for the 2 in rc2.d, if you are running in runlevel 4 use rc4.d etc.
    (Note: here you could link to rc2.d rc3.d rc4.d and rc.5.d so they would be started in any normal runlevel)

    then so the daemons are properly stopped on a shutdown or reboot you should do this:
    ln -s /etc/init.d/apache /etc/rc0.d/K20apache
    ln -s /etc/init.d/apache /etc/rc6.d/K20apache
    and for samba:
    ln -s /etc/init.d/samba /etc/rc0.d/K19samba
    ln -s /etc/init.d/samba /etc/rc2.d/K19samba



    Then when you boot up the daemons will be started up and when you reboot or shutdown they will be stopped.

    HTH

    ~rock

Similar Threads

  1. Start Apache and Mysqld at Bootup
    By delamatrix in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 01-04-2005, 08:27 AM
  2. Long, slow bootup time after hard drive install
    By poldervaart in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 10-12-2004, 05:47 PM
  3. How to make apache 1.3 automatically start at boot?
    By Zero_1984 in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 09-28-2004, 04:57 AM
  4. Replies: 2
    Last Post: 08-10-2004, 10:02 PM
  5. Where to start: Apache, MySql, & PHP
    By mabhatter in forum General Support
    Replies: 2
    Last Post: 03-14-2003, 12:27 AM

Posting Permissions

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


Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell PowerEdge R740xd Dual Intel Silver 4116 @2.1GHz 32GB HBA330 24Bay Server picture

Dell PowerEdge R740xd Dual Intel Silver 4116 @2.1GHz 32GB HBA330 24Bay Server

$525.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Intel X710-DA2 5N7Y5 Dual-Port 10GbE SFP+ PCIe 3.0 x8 Network Adapter picture

Dell Intel X710-DA2 5N7Y5 Dual-Port 10GbE SFP+ PCIe 3.0 x8 Network Adapter

$27.50



Dell PowerEdge R640 1U 8SFF Server Barebones 2x Gold 5120 64GB H330 2x 750w picture

Dell PowerEdge R640 1U 8SFF Server Barebones 2x Gold 5120 64GB H330 2x 750w

$538.88



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell PowerEdge R640 1U 8SFF Server Barebones 2x Gold 6150 64GB 2x 750w picture

Dell PowerEdge R640 1U 8SFF Server Barebones 2x Gold 6150 64GB 2x 750w

$499.88



Dell PowerEdge T620 2x E5-2620 v2 @ 2.20GHz, 64GB 2X600GB HDD DVDRW H310  NO OS picture

Dell PowerEdge T620 2x E5-2620 v2 @ 2.20GHz, 64GB 2X600GB HDD DVDRW H310 NO OS

$449.99



Dell Poweredge R720xd 2x Xeon E5-2660 2.2GHz 16-Cores  64gb  H710  26x Trays picture

Dell Poweredge R720xd 2x Xeon E5-2660 2.2GHz 16-Cores 64gb H710 26x Trays

$364.99



NEW DELL TRUSTED PLATFORM MODULE TPM 2.0 POWEREDGE R730 SERVER M48YR RXW6R K98XH picture

NEW DELL TRUSTED PLATFORM MODULE TPM 2.0 POWEREDGE R730 SERVER M48YR RXW6R K98XH

$225.00