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
  •  

ASRock Z370/OEM LGA 1151 (300 Series) ATX Intel Motherboard picture

ASRock Z370/OEM LGA 1151 (300 Series) ATX Intel Motherboard

$69.99



ASRock H110 Pro BTC+ 13 GPU ATX DDR4-SDRAM Mining Motherboard Cryptocurrency picture

ASRock H110 Pro BTC+ 13 GPU ATX DDR4-SDRAM Mining Motherboard Cryptocurrency

$295.99



ASUS Intel H81I-PLUS LGA1150 H81 HDMI/SATA 6Gb/s USB 3.0 Mini ITX Motherboard picture

ASUS Intel H81I-PLUS LGA1150 H81 HDMI/SATA 6Gb/s USB 3.0 Mini ITX Motherboard

$59.95



ASUS TUF B365M-PLUS GAMING Intel B365 1151 LGA MicroATX Desktop Motherboard A picture

ASUS TUF B365M-PLUS GAMING Intel B365 1151 LGA MicroATX Desktop Motherboard A

$54.99



MSI - B450 TOMAHAWK MAX (Socket AM4) USB-C Gen2 AMD Motherboard picture

MSI - B450 TOMAHAWK MAX (Socket AM4) USB-C Gen2 AMD Motherboard

$109.99



ASUS Q87M-E/CSM Desktop Motherboard Intel Socket LGA1150 MicroATX - w/ IO Shield picture

ASUS Q87M-E/CSM Desktop Motherboard Intel Socket LGA1150 MicroATX - w/ IO Shield

$55.95



GIGABYTE B450M DS3H V2 AM4 AMD B450 SATA 6Gb/s Micro ATX AMD Motherboard picture

GIGABYTE B450M DS3H V2 AM4 AMD B450 SATA 6Gb/s Micro ATX AMD Motherboard

$61.99



MSI MPG X570 GAMING PLUS Motherboard (AMD AM4, PCIe 4.0, DDR4, SATA 6Gb/s, M.2,  picture

MSI MPG X570 GAMING PLUS Motherboard (AMD AM4, PCIe 4.0, DDR4, SATA 6Gb/s, M.2,

$129.99



Gigabyte GA-870A-UD3 AMD ATX Motherboard Socket AM3 Gaming PC Desktop picture

Gigabyte GA-870A-UD3 AMD ATX Motherboard Socket AM3 Gaming PC Desktop

$29.95



MSI MPG B550 Gaming Plus, AMD AM4, DDR4, PCIe 4.0 M.2 HDMI/DP ATX Motherboard picture

MSI MPG B550 Gaming Plus, AMD AM4, DDR4, PCIe 4.0 M.2 HDMI/DP ATX Motherboard

$122.99