Category "shutdown"

How to fix "shutdown: NOT super-user" when using a shutdown script in Python? [duplicate]

I got this script import os shutdown = input("Do you wish to shutdown your computer ? (yes / no): ") if shutdown == 'no': exit() else: os

Netty shutdown/Stop UDP server

I'm trying to create Netty UDP listener. The problem I faced is that I can't stop udp server like tcp, the udp always is running, even with shutdowngracefully c

Handle WildFly component shutdown gracefully

How do I implement a service inside a war-container deployed on wildfly that is able to gracefully shutdown? I have the following example code: SomeService.jav