Is there a way to have an Event that shuts down MIS? I need part of my nightly maintenance to include a reboot, and I don't like the idea of
just task killing it.
Is there a way to have an Event that shuts down MIS? I need part of m nightly maintenance to include a reboot, and I don't like the idea of just task killing it.
I would want that too (actually for restarts) -- I ended up creating a cron job for detecting a semaphore and restarting MIS instead...
If you can assign the BBS (Mystic) user rights to stop the service
(you're on Windows? Perhaps some NET STOP <service name> command or nowadays probably PowerShell stuff to the same effect), i.e. itself,
then that could work.
But it would still require a scheduled job outside of Mystic I think...
Is there a way to have an Event that shuts down MIS? I need part nightly maintenance to include a reboot, and I don't like the id just task killing it.
I would want that too (actually for restarts) -- I ended up creating cron job for detecting a semaphore and restarting MIS instead...
If you can assign the BBS (Mystic) user rights to stop the service (you're on Windows? Perhaps some NET STOP <service name> command or nowadays probably PowerShell stuff to the same effect), i.e. itself, then that could work.
But it would still require a scheduled job outside of Mystic I think.
Yes, it's Windows. I'm okay if I need to do it through the Task
Scheduler. And it's easy enough to write a batch file with "taskkill /f mis.exe" followed by "shutdown /r". That'd ultimately do the trick, but
A couple of things I'm noting here, first, I said to myself, "Well sure that's easy! just set up an event in Mystic's Event editor to perform a 'systemctl restart mis.service' (Debian, ewboontew, CentOS, etc). Slackware would be '/etc/rc.d/rc.mis restart'.Folks using OpenRC would
use those facilities instead of SystemD or SysV-ish.This is a perfectly doable thing.
Anyway, there was, and still is, so much that can be done with Kixtart, which is still maintained, although Powershell has supplanted much over the past few years. The reason for using Kixtart was to work around limitations in NT, and of course, with the proviso that the enterprise
has standardized on a particular version of Windows.
Scheduler. And it's easy enough to write a batch file with "taskkill /f mis.exe" followed by "shutdown /r". That'd ultimately do the trick, but
I don't like the idea of force-quiting the server every night. Something will get corrupted, eventually. That's how my luck goes.
Try the following in your batch file instead of the TASKKILL command:
NET STOP "service name"
Check the exact service name under Services --> right-click on the
service and choose Properties --> check the Service Name listed, and use that one. Usually the service name listed does not have any spaces in
it, so you probably don't need the double quotes.
When MIS shuts down, any users logged on will be kicked out and things should be fine.
(Actually, the SHUTDOWN command should stop all services, so chances are that you might not need any of NET or TASKKILL...)
Hope this helps!
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,047 |
Nodes: | 15 (1 / 14) |
Uptime: | 00:59:44 |
Calls: | 233,605 |
Calls today: | 10 |
Files: | 60,159 |
D/L today: |
68 files (80,770K bytes) |
Messages: | 291,636 |