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
  •  


Cisco SG95-16 16-Port Gigabit Switch SG95-16-KR picture

Cisco SG95-16 16-Port Gigabit Switch SG95-16-KR

$47.00



Cisco WS-C2960-48PST-L 48 pport PoE Manageable Switch picture

Cisco WS-C2960-48PST-L 48 pport PoE Manageable Switch

$55.00



Cisco 24-Port Managed Gigabit Switch WS-C3750G-24TS-S picture

Cisco 24-Port Managed Gigabit Switch WS-C3750G-24TS-S

$49.99



Cisco SG200-26 26-Port Gigabit Network Smart Switch picture

Cisco SG200-26 26-Port Gigabit Network Smart Switch

$76.49



HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A picture

HP 2530-48G 48 Port Gigabit Ethernet Network Switch J9775A

$30.95



Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch picture

Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch

$21.99



New Linksys SE3005 5-port Gigabit Ethernet Switch picture

New Linksys SE3005 5-port Gigabit Ethernet Switch

$18.99



HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch picture

HP ProCurve 2530-24G J9776A 24 Port Gigabit Ethernet Managed Network Switch

$34.99



Netgear Prosafe Plus JGS524PE 24 Port Gigabit Switch 12 Port PoE JGS524PE-100NAS picture

Netgear Prosafe Plus JGS524PE 24 Port Gigabit Switch 12 Port PoE JGS524PE-100NAS

$129.98



HP JG937A Flexnetwork 5130-48G PoE+ 48-Port Gigabit Network Switch picture

HP JG937A Flexnetwork 5130-48G PoE+ 48-Port Gigabit Network Switch

$65.95