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
  •  


Case For Samsung Galaxy Tab A9/ A9+ 5G/ A9 Plus Kids Shockproof Cover with Stand picture

Case For Samsung Galaxy Tab A9/ A9+ 5G/ A9 Plus Kids Shockproof Cover with Stand

$16.99



EXCELLENT SAMSUNG GALAXY TAB 4 10.1in SM-T537V 16GB WIFI VERIZON ANDROID TABLET picture

EXCELLENT SAMSUNG GALAXY TAB 4 10.1in SM-T537V 16GB WIFI VERIZON ANDROID TABLET

$47.99



Samsung Galaxy Tab A - SM-T580 - 10.1

Samsung Galaxy Tab A - SM-T580 - 10.1" - 2GB RAM - 16GB (Black) - SM-T580NZKAXAR

$42.99



Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New) picture

Samsung Galaxy Tab A9 (X110) 64GB 4GB RAM International Version (New)

$129.99



Samsung - S Pen Creator Edition - White picture

Samsung - S Pen Creator Edition - White

$38.00



Samsung 970 EVO Plus NVMe M.2 500GB Internal SSD 3200MBS MZ-V7S500) picture

Samsung 970 EVO Plus NVMe M.2 500GB Internal SSD 3200MBS MZ-V7S500)

$24.99



Samsung Galaxy Tab E 8

Samsung Galaxy Tab E 8" 16GB Black SM-T377V (Verizon) Android Tablet IF1002

$28.50



Samsung Galaxy Tab A9+ 11.0

Samsung Galaxy Tab A9+ 11.0" 64GB Gray Wi-Fi Tablet Bundle SM-X210NZAYXAR 2023

$169.99



SAMSUNG 4TB 870 QVO 2.5

SAMSUNG 4TB 870 QVO 2.5" V-NAND SSD SATA Solid State Drive (MZ-77Q4T0)

$199.95



Samsung 22 In LED-backlit LCD monitor, S22E450D picture

Samsung 22 In LED-backlit LCD monitor, S22E450D

$45.00