From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653644221688.tru64-unix-managers.marc@archive.invalid> From: Paul Thompson Date: Wed, 12 Dec 2001 22:05:17 +0000 To: tru64-unix-managers Subject: [SUMMARY] class scheduling - does it start automatically on reboot? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653644221688 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--=_2E7308B9.4B2A7227" This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=_2E7308B9.4B2A7227 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable The consensus is that the class scheduler does not start automatically and = one can place a startup script for it in the rc scripts probably at an = early point in the transition from runlevel 0 to runlevel 2.=20 Thanks to Dr. Thomas P. Blinn=20 Paul Henderson =20 Bob Vickers Bob Vickers apparently had periodic problems with the daemon dying and = helpfully included this script to restart class scheduling automagically: #!/bin/ksh -p # # Check that class scheduling is enabled. If not, enable it. # Bob Vickers, 17 Jan 2000 PATH=3D/sbin:/usr/sbin:/usr/bin export PATH cd /tmp umask 022 statusline=3D$(class_admin show | grep status:) if [[ -z "$statusline" ]] then print -u2 "$0: cannot obtain class scheduling status" exit 1 fi if [[ "$statusline" =3D *enabled ]] then exit 0 # everything fine else echo "$0: Class scheduling not active on" `hostname` class_admin show echo '***Restarting class scheduling***' class_admin enable class_admin show fi >>> Paul Thompson 12/11/01 10:56AM >>> Hello managers I have recently started using the class scheduler feature of Tru64 to = limit CPU time for certain processes. I have added a 'runclass ' = into a crontab to a certain cron jobs at the desired class automatically. = =20 The man page for runclass says that if class scheduling is not enabled the = command will not be run, so my question is: does class scheduling retain = its last setting and restart automatically on reboot or do I need to add a = class_admin enable to one of my startup scripts? Google is not forthcoming on this topic. Thanks Paul --=_2E7308B9.4B2A7227 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Description: HTML
 
The consensus is that the class scheduler does not = start=20 automatically and one can place a startup script for it in the rc = scripts=20 probably at an early point in the transition from runlevel 0 to runlevel = 2.=20
Thanks to
 
Dr. Thomas P. Blinn
Paul Henderson          =
Bob Vickers
 
Bob Vickers apparently had periodic problems with the daemon dying=20 and helpfully included this script to restart class scheduling=20 automagically:
 
#!/bin/ksh -p
#
# Check that class scheduling is enabled. If = not,=20 enable=20 it.
#           &= nbsp;           =20 Bob Vickers, 17 Jan 2000
PATH=3D/sbin:/usr/sbin:/usr/bin
export=20 PATH

cd /tmp

umask 022

statusline=3D$(class_admin = show | grep=20 status:)
if [[ -z "$statusline" ]]
then
    print = -u2=20 "$0: cannot obtain class scheduling status"
    exit=20 1
fi
if [[ "$statusline" =3D *enabled ]]
then
   = ; exit=20 0 # everything fine
else
    echo "$0: Class = scheduling not=20 active on" `hostname`
    class_admin=20 show
    echo '***Restarting class=20 scheduling***'
    class_admin enable
  &nbs= p;=20 class_admin show
fi

>>> Paul Thompson=20 <paul.thompson@thedacare.org> 12/11/01 10:56AM >>>
=
Hello managers
 
I have recently started using the class scheduler = feature of=20 Tru64 to limit CPU time for certain processes.  I have added a = 'runclass=20 <cronjob>' into a crontab to a certain cron jobs at the desired = class=20 automatically.  
 
The man page for runclass says that if class=20 scheduling is not enabled the command will not be run, so my question = is:=20 does class scheduling retain its last setting and restart automatically = on=20 reboot or do I need to add a class_admin enable to one of my startup=20 scripts?
 
Google is not forthcoming on this topic.
 
Thanks
Paul
 
--=_2E7308B9.4B2A7227--