Python으로 만든 데몬을 시작/중지/재시작 시키는 쉘스크립트 예제.
#!/bin/sh ######################################################### # "DaemonManager.sh" ######################################################### if [ -f ~/.bashrc ]; then . ~/.bashrc PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH export PATH=/usr/local/anaconda3-4.1.0/bin:/usr/local/lib/:$PATH fi WORKDIR=~/TEST/BaseUpdateDaemon DAEMON=daemon.py LOG=~/TEST/log/daemon.log function do_start() ..
Devolopment/Python
2020. 3. 2. 14:36
반응형
최근에 달린 댓글