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
  •  


RARE Pre-Production, Unserialized Commodore Amiga 2000 - Haynie Fisher Rev 3.9 picture

RARE Pre-Production, Unserialized Commodore Amiga 2000 - Haynie Fisher Rev 3.9

$899.00



Vintage Chinon EN2000 Enhancer 2000 floppy disk drive for Commodore 64 picture

Vintage Chinon EN2000 Enhancer 2000 floppy disk drive for Commodore 64

$79.00



Commodore PET 4032 - tested, clean, working picture

Commodore PET 4032 - tested, clean, working

$599.00



Commodore 1541 Disk Drive With Manuals (Refurbished) picture

Commodore 1541 Disk Drive With Manuals (Refurbished)

$50.00



Commodore Amiga 3000 Computer For Parts/Not Working powers on selling as is part picture

Commodore Amiga 3000 Computer For Parts/Not Working powers on selling as is part

$1899.00



Commodore 1541-ii Disk Drive, Power Supply, Serial Cable, Box  Read Description picture

Commodore 1541-ii Disk Drive, Power Supply, Serial Cable, Box Read Description

$69.99



Vintage Commodore 64 Lot with 154I Floppy Disk Computer, 8 Games and 2 Manuals picture

Vintage Commodore 64 Lot with 154I Floppy Disk Computer, 8 Games and 2 Manuals

$300.00



Used Vintage Commodore Plus/4 computer with Original box picture

Used Vintage Commodore Plus/4 computer with Original box

$139.00



pi1541 Disk Emulator for Commodore -  picture

pi1541 Disk Emulator for Commodore -

$38.95



Bluster CPLD Amiga Buster replacement picture

Bluster CPLD Amiga Buster replacement

$55.99