# 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..
Python
증상 root에서는 실행가능, 사용자에서는 퍼미션에러 cd /home/사용자명 ; /usr/bin/env /bin/python3 /home/사용자명/.vscode-server/extensions/ms-python.python-2021.10.1365161279/pythonFiles/lib/python/debugpy/launcher 37148 -- /home/사용자명/TestSample/test.py Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/ping3/__init__.py", line 276, in ping sock = socket.socket(socket.AF_INET, socket.SOCK_RAW, so..