mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-01-24 15:52:02 +01:00
37e6f47bf7
Place these file like here within; /etc/containers/systemd/users/ for them to be available for all system users or place them within; /etc/containers/systemd/users/<UUID> ~/.config/containers/systemd/ for them to be available for that specific user. The systemd service files can then be automagically be created by the command; $ systemctl --user daemon-reload After which they can be started/enabled normally with; $ systemctl --user start ovos_messagebus $ systemctl --user start ovos_phal etc.
33 lines
863 B
Plaintext
33 lines
863 B
Plaintext
[Unit]
|
|
Description=OpenVoiceOS Audio Service
|
|
After=local-fs.target
|
|
Wants=ovos_messagebus.service
|
|
After=ovos_messagebus.service
|
|
Wants=ovos_phal.service
|
|
After=ovos_phal.service
|
|
|
|
[Container]
|
|
ContainerName=ovos_audio
|
|
Image=docker.io/smartgic/ovos-audio:alpha
|
|
AutoUpdate=registry
|
|
LogDriver=journald
|
|
HostName=ovos_audio
|
|
Network=host
|
|
Timezone=local
|
|
Environment=PULSE_SERVER=unix:/run/user/1000/pulse/native
|
|
Environment=PULSE_COOKIE=/home/ovos/.config/pulse/cookie
|
|
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
|
|
AddDevice=/dev/snd
|
|
Volume=%h/ovos/config:/home/ovos/.config/mycroft
|
|
Volume=%h/ovos/tmp:/tmp/mycroft
|
|
Volume=%h/.config/pulse/cookie:/home/ovos/.config/pulse/cookie:ro
|
|
Volume=%t/pulse:/run/user/1000/pulse:ro
|
|
Volume=%/bus:/run/user/1000/bus:ro
|
|
|
|
[Service]
|
|
TimeoutStartSec=900
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|