Thanks to everyone for your input...
While I can definitely modify uv.rc to call whatever script/program I need I
really didn't want to hack uv.rc because of the complications with upgrades.
What I was really wanting was a built-in facility in uv.rc that would
conditionally fire off a script, if found at a configurable location, only when
UniVerse is started up.
Perhaps something like...
if [ -s $uvhome/uv.rc.local ]; then
UV.RC.LOCAL=$(cat $/uvhome/uv.rc.local)
else
UV.RC.LOCAL=''
fi
....
case "$1" in
'start')
....
[ -x $UV.RC.LOCAL ] && $UV.RC.LOCAL
....
In short something that does not require customizing uv.rc.
Hrm... looking at my current uv.rc there is no explicit "start" mode. Only
"stop" and anything defaults to startup...
Case "$1" in
'start')
# shut down
...
*) # default: start up processes
...
My script would have to be smart enough to know if universe had previously been
started so as to not duplicate.
I really was looking for something to keep my life simple :(
Thanks.
Perry
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of doug chanco
Sent: Wednesday, July 10, 2013 7:53 PM
To: U2 Users List
Subject: Re: [U2] [UV] Auto Starting Applications
I use /etc/rc.local, if you vi the file you will see:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
to not just start up universe processes, but linux ones as well
(glassfish, mysql, and a couple of perl programs as welletc ....)
dougc
>> What techniques are you folks using to start up apps when UniVerse on
>> Linux is started? Obviously hooking into uv.rc is an option. Are
>> there others?
>>
>> Thanks.
>> Perry
> ************** IMPORTANT MESSAGE *****************************
> This e-mail message is intended only for the addressee(s) and contains
> information which may be
> confidential.
> If you are not the intended recipient please advise the sender by return
> email, do not use or
> disclose the contents, and delete the message and any attachments from your
> system. Unless
> specifically indicated, this email does not constitute formal advice or
> commitment by the sender
> or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its
> subsidiaries.
> We can be contacted through our web site: commbank.com.au.
> If you no longer wish to receive commercial electronic messages from us,
> please reply to this
> e-mail by typing Unsubscribe in the subject line.
> **************************************************************
>
>
>
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
CONFIDENTIALITY NOTICE: This e-mail message, including any
attachments, is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is
prohibited. ZirMed, Inc. has strict policies regarding the
content of e-mail communications, specifically Protected Health
Information, any communications containing such material will
be returned to the originating party with such advisement
noted. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the
original message.
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users