Turn off kill/skill on Windows since it has no PID management
This commit is contained in:
parent
18a9e4049a
commit
daa34e7fc2
1 changed files with 4 additions and 4 deletions
|
|
@ -1762,12 +1762,12 @@ def run_menu():
|
||||||
stop_server_only()
|
stop_server_only()
|
||||||
elif inp == 7:
|
elif inp == 7:
|
||||||
if _is_windows():
|
if _is_windows():
|
||||||
print("Windows can't send kill signals by PID. Use option 8 instead.")
|
print("This option is not supported on Windows.")
|
||||||
else:
|
else:
|
||||||
kill(SERVER_PIDFILE, 'Server')
|
kill(SERVER_PIDFILE, 'Server')
|
||||||
elif inp == 8:
|
elif inp == 8:
|
||||||
if _is_windows():
|
if _is_windows():
|
||||||
kill(None)
|
print("This option is not supported on Windows.")
|
||||||
else:
|
else:
|
||||||
kill(SERVER_PIDFILE, 'Server')
|
kill(SERVER_PIDFILE, 'Server')
|
||||||
kill(PORTAL_PIDFILE, 'Portal')
|
kill(PORTAL_PIDFILE, 'Portal')
|
||||||
|
|
@ -1946,13 +1946,13 @@ def main():
|
||||||
stop_server_only()
|
stop_server_only()
|
||||||
elif option == 'kill':
|
elif option == 'kill':
|
||||||
if _is_windows():
|
if _is_windows():
|
||||||
kill(None)
|
print("This option is not supported on Windows.")
|
||||||
else:
|
else:
|
||||||
kill(SERVER_PIDFILE, 'Server')
|
kill(SERVER_PIDFILE, 'Server')
|
||||||
kill(PORTAL_PIDFILE, 'Portal')
|
kill(PORTAL_PIDFILE, 'Portal')
|
||||||
elif option == 'skill':
|
elif option == 'skill':
|
||||||
if _is_windows():
|
if _is_windows():
|
||||||
print("This is not supported on Windows. Use 'evennia kill' instead.")
|
print("This option is not supported on Windows.")
|
||||||
else:
|
else:
|
||||||
kill(SERVER_PIDFILE, 'Server')
|
kill(SERVER_PIDFILE, 'Server')
|
||||||
elif option != "noop":
|
elif option != "noop":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue