ADSM-L

[no subject]

2015-10-04 17:33:43
OJANZEN AT DE.IBM DOT COM wrote:
>I heard about specialities about SUN Solaris Client Scheduler.
>Can you use /etc/inittab?
Yes, that's what I do. Add the following line to /etc/inittab, (you can also
send
the output to /dev/null rather than a file - I just like to see what's going
on).
adsm::once:/usr/bin/dsmc sched >> /tmp/adsm.log 2>&1

>Or is it necessary to create "S..." scripts in /etc/init.d and link them to
>/etc/rc2.d?
No, but if you want to do this here's a script which works, although there
are probably better ways to do it.
Put this in /etc/init.d and then create a link to it, for example
/etc/rc2.d/S99adsm.

#!/bin/sh
#
if [ ! -d /usr/bin ]
then                    # /usr not mounted
        exit
fi
dieproc() {             # kill the named process(es)
        pid=`/usr/bin/ps -ef | /usr/bin/grep 'dsmc sched'|
                /usr/bin/grep -v grep | /usr/bin/grep -v /bin/sh |
                /usr/bin/awk '{print $2}'`

        if [ "${pid}" != "" ] ; then
                echo $2
                kill -KILL ${pid} > /dev/null 2>&1
        fi
}
# Start/stop ADSM scheduler process
case "$1" in
'start')
        #
        # start DSM scheduler service
        #
        if [ -f /usr/bin/dsmc ] ; then
                echo "Starting ADSM Scheduler process."
                nohup /usr/bin/dsmc sched 2>&1 >/tmp/dsmc-sched &
        fi
        ;;
'stop')

        dieproc dsmc "Stopping ADSM scheduler."
        ;;
*)
        echo "Usage: /etc/init.d/dsmcsched { start | stop }"
        ;;
esac
exit 0


**********************************************************************
The information contained in this message and any attachments:

1. does not constitute an offer or an acceptance of an offer or a
representation or warranty, nor shall it form any part of a legally
binding contract.

2. has been compiled with care but no representation or warranty
(express or implied) is made as to its accuracy or completeness and no
liability can be accepted for any loss arising from the use of any of
the information.

3. may include opinions or views, which unless expressly stated
otherwise, are not those of the company or any person in relation to
whom the company would have vicarious liability or responsibility.

4. is not guaranteed to be free from any so-called computer viruses
and it is strongly recommended that you check for such viruses before
down-loading it to your computer equipment.

5. may include hypertext links to the sites of other companies or
persons, the content of which this company has no control over and
accepts no liability for.

6. is for the exclusive use of the addressee and may contain confidential,
privileged, work product immunity and/or non-disclosable information.
If you are not the intended recipient and receive this message and any
attachments, you must not read, copy, transmit, disclose or otherwise use
any of them (or part of them) in any way (to do so may be unlawful) and
we would be grateful if you could inform us immediately of any such
receipt and subsequently entirely and permanently erase the message and
any attachments from your equipment.

E-mail is an informal method of communication and is subject to
possible data corruption.  For these reasons it will normally be
inappropriate to rely upon information contained in an e-mail without
obtaining tangible written confirmation of it.
**********************************************************************

--Boundary_(ID_wsJNk2CkCAK6tR7UvyXx9Q)--
=========================================================================
<Prev in Thread] Current Thread [Next in Thread>
  • [no subject], Unknown <=