Skip to content

service file needs to be adapted for --with-tinysvcmdns #1454

Closed
@klslz

Description

If Shairport Sync gets compiled with --with-tinysvcmdns instead of --with-avahi, the make-installed
systemd startup service file still requires the Avahi service to be present.

That makes Shairport Sync fail to start.

I'd suggest that

  1. either a 2nd systemd startup service file should get installed or
  2. the documentation should be updated

original:

[Unit]
Description=Shairport Sync - AirPlay Audio Receiver
After=sound.target
Requires=avahi-daemon.service
After=avahi-daemon.service
Wants=network-online.target
After=network.target network-online.target

[Service]
ExecStart=/usr/local/bin/shairport-sync
User=shairport-sync
Group=shairport-sync

[Install]
WantedBy=multi-user.target

needs to be

[Unit]
Description=Shairport Sync - AirPlay Audio Receiver
After=sound.target
Wants=network-online.target
After=network.target network-online.target

[Service]
ExecStart=/usr/local/bin/shairport-sync
User=shairport-sync
Group=shairport-sync

[Install]
WantedBy=multi-user.target

if compiled with --with-tinysvcmdns and Avahi not being present.

Thx for the great work btw.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions