From: Paul Thompson <paul.thompson () thedacare ! org>
To: tru64-unix-managers
Subject: [SUMMARY] class scheduling - does it start automatically on reboot?
Date: Wed, 12 Dec 2001 22:05:17 +0000 [thread overview]
Message-ID: <102653644221688.tru64-unix-managers.marc@archive.invalid> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--=_2E7308B9.4B2A7227", Size: 5321 bytes --]
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 <paul.thompson@thedacare.org> 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 <cronjob>' =
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN-TOP: 2px; FONT: 8pt MS Sans Serif; MARGIN-LEFT: =
2px">
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>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
</FONT><BR></DIV>
<DIV>Thanks to</DIV>
<DIV> </DIV>
<DIV>Dr. Thomas P. Blinn <A href=3D"mailto:Thomas.Blinn@Compaq.com"></A></D=
IV>
<DIV>Paul Henderson =
</DIV>
<DIV>Bob Vickers</DIV>
<DIV> </DIV>
<DIV>Bob Vickers apparently had periodic problems with the daemon dying=20
and helpfully included this script to restart class scheduling=20
automagically:</DIV>
<DIV> </DIV>
<DIV>#!/bin/ksh -p<BR>#<BR># Check that class scheduling is enabled. If =
not,=20
enable=20
it.<BR># &=
nbsp; =20
Bob Vickers, 17 Jan 2000<BR>PATH=3D/sbin:/usr/sbin:/usr/bin<BR>export=20
PATH<BR><BR>cd /tmp<BR><BR>umask 022<BR><BR>statusline=3D$(class_admin =
show | grep=20
status:)<BR>if [[ -z "$statusline" ]]<BR>then<BR> print =
-u2=20
"$0: cannot obtain class scheduling status"<BR> exit=20
1<BR>fi<BR>if [[ "$statusline" =3D *enabled ]]<BR>then<BR>  =
; exit=20
0 # everything fine<BR>else<BR> echo "$0: Class =
scheduling not=20
active on" `hostname`<BR> class_admin=20
show<BR> echo '***Restarting class=20
scheduling***'<BR> class_admin enable<BR> &nbs=
p;=20
class_admin show<BR>fi<BR><BR>>>> Paul Thompson=20
<paul.thompson@thedacare.org> 12/11/01 10:56AM >>><BR></DIV>=
<FONT=20
face=3D"MS Sans Serif" size=3D1>
<DIV><FONT size=3D1>Hello managers</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>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. </FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>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?</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>Google is not forthcoming on this topic.</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>Thanks</FONT></DIV>
<DIV><FONT size=3D1>Paul</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV></FONT></BODY></HTML>
--=_2E7308B9.4B2A7227--
reply other threads:[~2001-12-12 22:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox