PDP-10 / its

Incompatible Timesharing System
Other
841 stars 80 forks source link

New daemon (dragon?) to kick off idle users who haven't logged in by name #2196

Closed larsbrinkhoff closed 1 year ago

larsbrinkhoff commented 1 year ago

I get a lot of connections to my public ITS system which manage to ^Z but never log in. After that they sit idle and hog a job slot forever.

I need a program which runs in the background, detects these users, and kicks them off the system.

eswenson1 commented 1 year ago

Seem to recall there was such a program. I wonder if GUNNER (the DM daemon) does it? In any case, there was something else that we ran back on MC to do just that -- kill idle not-logged-in jobs.

larsbrinkhoff commented 1 year ago

The DM GUNNER seems to have code to do that. I did some grepping, but I couldn't find anything else so far.

eswenson1 commented 1 year ago

@larsbrinkhoff Check out ar8:ejs1;gunner 6 on ES. This is a trivial gunner daemon that kills not-logged-in hactrns. We used it on MC. I've been able to get my files from ToTS, so I can check this in, if we want it and if it still works.

It seems to gun any not-logged-in HACTRN job that has been idle for 20 minutes. It is a one-shot program -- if you want to run it repeatedly, you have to link it in DRAGON (e.g. HOURLY GUNNER).

If you run PWORD on your machine -- it has its own 5-minute not-logged-in idle timeout. So to test GUNNER, you have to patch it to look for idle consoles for less than 5 minutes.

larsbrinkhoff commented 1 year ago

That sounds like exactly what I want. I got a copy off ES and tested it. We also need KSC; TIMRTS to assemble it. I crossed my fingers and ran it even if there are no idle users - there was no carnage. Now I'm waiting 20 minutes to test the gunnage.

larsbrinkhoff commented 1 year ago

It gunned down the idle job perfectly. I'll make a pull request for this soon.

larsbrinkhoff commented 1 year ago

I haven't been able to get an exact copy of GUNNER 6 due to Chaosnet problems. Can you send me one? (The one I have is captured ^R output.)

eswenson1 commented 1 year ago

I sent you gunner 6 and timrts 42 via email.

larsbrinkhoff commented 1 year ago

Resolved by #2202.