Results 1 to 2 of 2

Thread: What's the significance of putting "start_services &" within a subshell?

  1. #1

    What's the significance of putting "start_services &" within a subshell?

    Hi

    I'm looking at the following command in the /etc/init.d/knoppix-autoconfig boot script:

    ( start_services & ) >/dev/tty"$LOG_CONSOLE" 2>&1 # Not in job list

    It is in the context of

    # Start services (especially /etc/rc.local) in background
    addtask "bg"; addprogress "Starting background services..."
    ( start_services & ) >/dev/tty"$LOG_CONSOLE" 2>&1 # Not in job list

    The "start_services" is a function within the "knoppix-autoconfig" script.

    Could you tell me what the significance is of putting the "start_services &"
    WITHIN A SUBSHELL (the (...) brackets)?

  2. #2
    Moderator Moderator
    Join Date
    Nov 2010
    Location
    Germany/ Dietzenbach
    Posts
    1,124
    It's the way to get the the function "start_services" running in the background → "&".

Posting Permissions

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


Commodore 64   picture

Commodore 64

$160.00



Commodore 64 Computer CIB - Great Shape - Powers On picture

Commodore 64 Computer CIB - Great Shape - Powers On

$105.00



Commodore 64 Computer Keyboard In Box, Untested picture

Commodore 64 Computer Keyboard In Box, Untested

$139.99



Commodore 64 Home Computer picture

Commodore 64 Home Computer

$200.00



Vintage Commodore VIC 20 Computer Untested No Power Adapter MADE IN USA Keyboard picture

Vintage Commodore VIC 20 Computer Untested No Power Adapter MADE IN USA Keyboard

$59.99



CMD MANUALS USER BINDER RAMLINK JIFFY DOS GATEWAY FOR COMMODORE 64 128 picture

CMD MANUALS USER BINDER RAMLINK JIFFY DOS GATEWAY FOR COMMODORE 64 128

$224.99



Ultra Rare Commodore 64GS with 12 Game Cartridges Tested picture

Ultra Rare Commodore 64GS with 12 Game Cartridges Tested

$1119.00



Promqueen EPROM Programmer for Commodore VIC-20 SUPER RARE picture

Promqueen EPROM Programmer for Commodore VIC-20 SUPER RARE

$499.00



RARE Commodore KS64C Personal Computer Keyboard #’d 292/500 - Great Condition picture

RARE Commodore KS64C Personal Computer Keyboard #’d 292/500 - Great Condition

$299.99



TeensyROM Cartridge for Commodore 64/128: MIDI, Fastload, Emulation, and Network picture

TeensyROM Cartridge for Commodore 64/128: MIDI, Fastload, Emulation, and Network

$65.00