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
  •  


12th Gen Intel 6-Core i5-12500T Turbo Boost up to 4.4 GHz Processor - 8K Support picture

12th Gen Intel 6-Core i5-12500T Turbo Boost up to 4.4 GHz Processor - 8K Support

$165.00



Intel Core i9-13900K Unlocked Desktop Processor - 24 cores (8P+16E) & 32 threads picture

Intel Core i9-13900K Unlocked Desktop Processor - 24 cores (8P+16E) & 32 threads

$559.99



Intel - Core i5-12600K Desktop Processor 10 (6P+4E) Cores up to 4.9 GHz Unloc... picture

Intel - Core i5-12600K Desktop Processor 10 (6P+4E) Cores up to 4.9 GHz Unloc...

$238.99



Intel Core i5-13600KF Unlocked Desktop Processor - 14 Cores (6P+8E) & 20 Threads picture

Intel Core i5-13600KF Unlocked Desktop Processor - 14 Cores (6P+8E) & 20 Threads

$279.99



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$298.99



Intel Core i7-13700K Unlocked Desktop Processor - 16 Cores (8P+8P) & 24 Threads picture

Intel Core i7-13700K Unlocked Desktop Processor - 16 Cores (8P+8P) & 24 Threads

$399.99



AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor picture

AMD Ryzen 5 5500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor

$98.98



Intel Core i7-13700KF Unlocked Desktop Processor - 16 Cores (8P+8E) & 24 Threads picture

Intel Core i7-13700KF Unlocked Desktop Processor - 16 Cores (8P+8E) & 24 Threads

$369.99



Intel Xeon 4210 Processor 10 Core 20 Thread | 3.20 GHz | 13.75 MB Cache SRFBL picture

Intel Xeon 4210 Processor 10 Core 20 Thread | 3.20 GHz | 13.75 MB Cache SRFBL

$240.00



10th Gen Intel 4-Core i3-10105T 3.0GHz with Turbo Boost up to 3.9GHz Processor  picture

10th Gen Intel 4-Core i3-10105T 3.0GHz with Turbo Boost up to 3.9GHz Processor

$64.00