The reason I'm asking, is I have a utility that utilizes the log files, and on Windows systems, MIS has a lock on those files. If there was a
way to shut down MIS via an event of some type, so that I could run my utilities, and then start up MIS again, it would be great.
Are you talking about the mis.log? I am trying to replicate that issue and I am not able to with the latest A43.
To answer you question I think it'd be nice to have a shutdown command
for Windows as well, since there is one for Linux so I will put that on the list. I have some other ideas around that type of thing that I have wanted to try out too hopefully I can get to them soon.
But I'd also like to focus on how we can get it so you can read mis.log too.
That would be great. I was also wondering, as I haven't tried it yet
under Linux, does the ./mis -shutdown do a graceful shutdown? I don't
want to have any issues with events that may be in process...
Awesome. I've been trying to figure out a work-around, but have been running into roadblocks... The best I was able to do, is using a batch file, rename the log files, run the program, then delete the copies... There's got to be a better way. :)
Awesome. I've been trying to figure out a work-around, but have been running into roadblocks... The best I was able to do, is using a batch file, rename the log files, run the program, then delete the copies... There's got to be a better way. :)
Thanks,
In Linux it will disconnect connections and shutdown each server
process, but if an event is running it should be waiting for up to 1 minute before shutting down anyway. Whether or not that kills the subprocess I'd have to test to be 100% certain but I would think it does.
Well like I said, I am not having any issues viewing mis.log when its running so I am wondering what is different between our setups.
You sound like you are doing something like I do. I run at 11:59 every night a bat file to copy that days logs to a folder adding the date to
the files, then on Sunday morning zip them up with the date. (gotta
write the bat file to zip the weekly and monthly files with dates)..
Only file that is not included is mis, that 1 I do manually..
Very close. :)
I wrote a program that backs up the log files nightly into a directory structure such as:
mystic/logs/2019/02/23/
I keep getting an error saying it was unable to open file, as it was locked.
I am able to copy mine when its running in Windows. Do you have
anything else running against it? Have you tried it recently? When I have log caching on it will likely be locked but its no longer on at the moment, and it will be configurable in the future.
Sysop: | echicken |
---|---|
Location: | Toronto, Ontario |
Users: | 2,224 |
Nodes: | 6 (0 / 6) |
Uptime: | 222:01:57 |
Calls: | 14,143 |
Files: | 295 |
Messages: | 551,192 |