On Jun 12, 2021, at 08:10, Alejandro Olivan Alvarez 
<[email protected]> wrote:
> - Now I will setup a systemd unit that will take care of providen a system 
> service consisting on a 'root-driven-but-GID150-promiscuous' jackd instance. 
> **NOTICE my unit is commented/templated so jackd can be setup against either 
> a dummy card, or to a real ALSA interface. For the sake of example, I've let 
> the card-independant dummy one, so a cut/paste of this unit will work.
> 
> Here's the contents of /etc/systemd/system/jackd.service
> 
> [Unit]
> Description=Start the JACK server in promiscuous mode for GID 150
> After=sound.target
> StartLimitBurst=5
> StartLimitIntervalSec=33
> 
> [Service]
> Type=simple
> Environment="JACK_PROMISCUOUS_SERVER=150"
> UMask=0
> # For ALSA device binding running mode:
> #Environment="JACK_NO_AUDIO_RESERVATION=1"
> #ExecStart=/usr/bin/jackd -R -d alsa -d hw:????? [-r 48000] [-M] [-H]
> # For a floating/independent jackd running mode:
> ExecStart=/usr/bin/jackd -R --name default -d dummy -r 48000 -C 2 -P 2
> Restart=always
> RestartSec=5
> 
> [Install]
> WantedBy=multi-user.target
> 

A better approach might be to configure Rivendell itself to start the jackd(1) 
instance. See RDAdmin->ManageHosts->[hostname]->JACKSettings. That way, your 
jackd(1) configuration gets saved in the Rivendell database and hence will be 
included as part of the regular backup process, plus you eliminate the need to 
tweak the ‘rivendell.service’ unit file each time Rivendell is updated. The 
primary drawback of this approach is that you will need to restart the 
‘rivendell’ systemd service every time those command-line parameters change. 
(While this is a bit of a bother during the initial system setup, it’s 
basically a non-issue once you’ve settled on the jackd(1) parameters that you 
want to use).

Cheers!


|---------------------------------------------------------------------|
| Frederick F. Gleason, Jr. |             Chief Developer             |
|                           |             Paravel Systems             |
|---------------------------------------------------------------------|
|         A room without books is like a body without a soul.         |
|                                                                     |
|                                                         -- Cicero   |
|---------------------------------------------------------------------|


_______________________________________________
Rivendell-dev mailing list
[email protected]
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to