Hi,

>From a source install its quite an easy process working with JACK:

1.  Remove the Rivendell init script so that the daemons don't start
2.  Remove the s permissions from caed, ripcd and rdcatchd
3.  Use Gnome/Startup to load qjackctl
4.  Use qjackctl to run two scripts:
4a. Jack Post Start: bash script that runs /usr/local/caed (and ripcd, rdcatchd)
4b. Jack Pre Stop: bash script that does a killall caed ripcd rdcatchd
5.  Use Jack Patch bay or rivendell startup macros to connect to the relevant 
Jack ports
6.  Set qjackctl to start jack on load, minimise to tray etc (so none of the 
pressing start etc)

>From there you just load rdairplay or I guess add it to the jack post start 
>script so you know everything is ready before it loads.  Then under rdadmin 
>set airplay to load the days log by using the templates e.g. %Y_%m_%d

If you want to get even funkier use the LL macro with some mysql magic to load 
the log at the relevant line based on the current time.  This was mentioned in 
an email to this list a few weeks ago and it works really nicely.


-----Original Message-----
From: [email protected] on behalf of Gregg Wonderly
Sent: Sun 26/08/2012 07:27
To: User discussion about the Rivendell Radio Automation System
Subject: Re: [RDD] 2.1.5 no energy data...
 

On Aug 25, 2012, at 9:06 PM, Wayne Merricks <[email protected]> 
wrote:

> Hi,
> 
> sudo chmod -s caed ripcd rdcatchd
> 
> Is all you need as it removes the super user ID which makes the daemons 
> always run as root regardless of what user called them.  

The setuid-on-exec bit is removed by the -s, and so that makes these programs 
run as the invoking user.

On most server systems, the root user is the one doing "service XXXX start/stop 
etc".  So they are ran as root because of that.  Rivendell is troubled by the 
fact that a non-root user login is starting jackd and thus these three 
processes, and any others that need to use jackd's services must run as the 
same user.

I've noted that jackd is started automatically in /etc/init.d/rivendell, 
regardless of whether you've set the "start jack" variable there.  So, if the 
service is started at boot, then jackd will run as root, and the rivendell 
daemons will run as root, but your rdairplay will run as rd or whomever your 
desktop login user is.

So, I think most of you guys are doing what I've been doing, using this trick, 
to keep them from running as root.

So, when you login to your desktop, I think everyone starts jack via qjackctl 
or some such.  The, you start rivendell daemons with "service rivendell start", 
followed by starting airplay.

During the "service rivendell start" processing the jackd started there will 
fail because jackd is already running.  I have the problem that I can't get 
jackd to start reliably with the "service rivendell start" processing.

Does anyone have a clever way to go ahead and get everything started 
automatically so that the desktop user just as to start rdairplay, and that 
could even be started automatically by gnome, and load the last loaded log, and 
start the station back up automatically?

If power goes down, hard, or some reset occurs, I'd really like for the station 
to jump back to life.

Gregg
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev


#######################
Scanned by MailMarshal
#######################

############

Attention: 

The information contained in this message is confidential and intended 
for the addressee(s) only. If you have received this message in error 
or there are any problems, please notify the originator immediately.
The unauthorised use, disclosure, copying or alteration of this message
is strictly forbidden. Christian Vision or any of its subsidiaries will
not be liable for direct, special, indirect or consequential damages 
arising from alteration of the contents of this message by a third party
or as a result of any virus being passed on. Please note that we reserve
the right to monitor and read any e-mails sent or received by the 
company under the Telecommunications (Lawful Business Practice) 
(Interception of Communications) Regulation 2000. Christian Vision is 
registered in England as a limited company 2842414 and as a charity 
1031031  

############

<<winmail.dat>>

_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to