You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to #163 but for systemd. The current systemd service runs as a "system" as versus a "user" service, which then doesn't work with pipewire as a service in pulseaudio emulation mode (and, I suspect, pulseaudio as well, although I haven't checked). If one starts squeezelite as a user service everything is fine.
I created the following systemd service file and placed it in /etc/systemd/user as "squeezelite.service:
As you can see, it's an adaptation of the current system service file, except that:
--cgroup controls are removed since absent a delegation users don't have control over the relevant resources
--the EnvironmentFile allows for over-ride of the system defaults on a per-user basis by allowing users to create an over-ride file in ~/.config/squeezelite
I used this to tweak the default squeezelite.conf so that the log would be written in the users home directory and the player name would be user specific and would use pipewire.
The text was updated successfully, but these errors were encountered:
This is similar to #163 but for systemd. The current systemd service runs as a "system" as versus a "user" service, which then doesn't work with pipewire as a service in pulseaudio emulation mode (and, I suspect, pulseaudio as well, although I haven't checked). If one starts squeezelite as a user service everything is fine.
I created the following systemd service file and placed it in /etc/systemd/user as "squeezelite.service:
[Unit]
Description=Squeezelite Player for %u
[Service]
EnvironmentFile=-/etc/squeezelite.conf
EnvironmentFile=-%h/.config/squeezelite/squeezelite.conf
ExecStart=/usr/bin/squeezelite
$OPTIONS
$NAME $MAC $PRIORITY
$MAX_RATE $AUDIO_DEV
$BUFFER $CODEC $ALSA_PARAMS $VOLUME
$LOG_FILE $LOG_LEVEL
$UPSAMPLE $DOP $VISULIZER $SERVER_IP
As you can see, it's an adaptation of the current system service file, except that:
--cgroup controls are removed since absent a delegation users don't have control over the relevant resources
--the EnvironmentFile allows for over-ride of the system defaults on a per-user basis by allowing users to create an over-ride file in ~/.config/squeezelite
I used this to tweak the default squeezelite.conf so that the log would be written in the users home directory and the player name would be user specific and would use pipewire.
The text was updated successfully, but these errors were encountered: