delete pid file

· Linux/Python
# https://stackoverflow.com/questions/48506824/automatic-start-and-stop-of-apscheduler-during-boot-of-linux import signal import atexit import os import time PID_FILE_PATH = "pythonPID.pid" stop = False def create_pid_file(): # this creates a file called program.pid with open(PID_FILE_PATH, "w") as fhandler: # and stores the PID in it fhandler.write(str(os.getpid())) def sigint_handler(signum, f..
zosystem
'delete pid file' 태그의 글 목록