DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

How to Make a 24/7 Gurbani Stream Restart Automatically After a Server Reboot

Use a foreground systemd service to start a Liquidsoap-based Gurbani stream at boot and recover from unexpected exits. Includes setup, reboot testing, and troubleshooting.
Length4 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On a Linux server that uses systemd, run the Gurbani stream process in the foreground as a system service, enable that service at boot, and set a restart policy for unexpected exits. The steps below use Liquidsoap as a reference implementation; adapt the command, paths, account, and dependencies to your actual streaming software. Automatic process restart does not by itself confirm that audio is reaching listeners.

What the two automatic-start settings do

Boot activation and crash recovery are separate controls. systemctl enable connects a unit to its configured boot target so systemd starts it during startup. The service’s Restart= setting controls what systemd does when its main process exits or times out. For long-running services, systemd documents on-failure as the recommended policy; Liquidsoap’s production example uses always, which also restarts after a clean exit. Intentional stop operations requested through systemd are not automatically undone. Frequent failures can also encounter systemd start-rate limits. See systemd.service(5) and Liquidsoap’s production guide.

Create a systemd service for the stream

Liquidsoap recommends running in the foreground under a service manager. Its production guide gives a systemd example with a Liquidsoap command; the unit below adapts that pattern for a Gurbani stream. Change the script path and service account to match your host.

# /etc/systemd/system/gurbani-radio.service
[Unit]
Description=Gurbani audio stream
Wants=network-online.target
After=network-online.target

[Service]
User=liquidsoap
Group=liquidsoap
ExecStart=/usr/bin/liquidsoap /etc/liquidsoap/gurbani.liq
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target

Check the paths and account

Use the actual Liquidsoap executable and script locations on your server. Liquidsoap’s production documentation says its Debian, Ubuntu, Fedora, and Alpine packages create a liquidsoap system user and group; verify that your installed package did so. That account must be able to read the script, configuration, and audio files it needs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Choose a restart policy deliberately

Restart=on-failure restarts after an unsuccessful exit or timeout, while leaving a clean exit stopped. Choose Restart=always if any process exit should cause a restart, including a clean exit. Liquidsoap’s example uses always; systemd recommends on-failure for long-running services. Do not use Type=forking for a process that can remain in the foreground: systemd needs to supervise the process it starts.

Understand the network ordering

Wants=network-online.target and After=network-online.target request and order startup relative to that target. They do not prove that a remote streaming endpoint is reachable. Whether the target accurately represents network readiness depends on the host’s network manager and configuration.

Validate, enable, and start the service

  1. Check a changed Liquidsoap script before restarting the service:

    Rank #2
    Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
    • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
    • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
    • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
    • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
    • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
    liquidsoap --check /etc/liquidsoap/gurbani.liq

    Liquidsoap recommends this check after script modifications.

    What’s actually slowing this PC down?

    Pick the symptom - the matching free tool is one click away.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. Save the unit file, then reload systemd’s unit definitions and enable the service for boot while starting it now:

    sudo systemctl daemon-reload
    sudo systemctl enable --now gurbani-radio.service
  3. Confirm enablement and inspect the service state and current-boot logs:

    Rank #3
    Sale
    Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
    • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
    • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
    • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
    • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
    • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
    systemctl is-enabled gurbani-radio.service
    systemctl status gurbani-radio.service
    journalctl -u gurbani-radio.service -b

    Debian’s systemd services guide documents reloading unit files, enabling services, and checking status. Liquidsoap’s production guide also demonstrates enabling and starting a unit together.

Test recovery after a reboot

  1. Schedule a maintenance window if the stream is serving listeners, then reboot the server using your normal operating procedure.

    Free tools Windows power users keep installed

    One-click scans. No signup required.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. After the host returns, check systemctl is-enabled gurbani-radio.service, systemctl status gurbani-radio.service, and journalctl -u gurbani-radio.service -b.

    Rank #4
    Sale
    UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
    • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
    • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
    • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
    • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
    • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
  3. Test the public stream URL or listen from an independent client. A running service only establishes that systemd considers its managed process active; it does not establish that the expected Gurbani audio is being served.

Liquidsoap describes the audio generator, streaming server, and player as distinct parts of the stream path. If the generator outputs to Icecast, configure and verify Icecast separately. Liquidsoap’s Quickstart covers output.icecast and advises changing source and admin passwords when Icecast is publicly exposed.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a service that does not return

Let StreamNeo keep a YouTube stream running in the cloud

If your Gurbani stream is a pre-recorded video playing as a YouTube live stream, StreamNeo is an alternative to maintaining your own server: upload the recording or build a playlist, add your YouTube stream key, and go live. StreamNeo loops uploaded videos from the cloud, so your computer and home connection do not have to stay on. It streams the uploaded quality up to 4K 60fps at one flat price per slot, automatically recovers if YouTube drops the stream, and offers the first day free with no card. Monthly pricing is $9.99 per month. StreamNeo plays uploaded video; it is not a live camera source. See StreamNeo or start the free first day.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
  2. How to Get XL Gogoat in Pokemon Legends Z-A (An Extra-Large Gogoat)Pokemon Legends Z-ABlog20min
  3. How to Get Rotting Lightbringer in Diablo 4Diablo 4Blog17min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.