Notice
Recent Posts
Recent Comments
Link
웁스교교주의 이야기
[centos] centos8 재시작시 자동으로 실행시키기 본문
[Unit]
Description=Python Test Service # 서비스 설명
After=syslog.target network.target
[Service]
Type=forking
#Environment="JAVA_HOME=/usr/lib/jvm/java-1.8.0-" #환경 변수 설정
#Environment="CATALINA_HOME=/usr/local/tomcat9" #환경 변수 설정
User=root #실행시킬 유저
Group=root #실행시킬 그룹
ExecStart=bash /home/cuter74/services/solution/start.sh #실행 명령어
ExecStop=bash /home/cuter74/services/solution/stop.sh #중지 명령어
[Install]
WantedBy=multi-user.target
'개발 > Linux' 카테고리의 다른 글
[ubuntu] ipv6 disable 영구적으로 시키는 방법 (0) | 2021.05.13 |
---|---|
[ubuntu] 색상 프로파일을 만들려면 인증이 필요합니다. 없애는 방법 (0) | 2021.05.13 |
[centos6] python3 설치 및 기본 파이썬 변경 (0) | 2020.10.26 |
[centos]sshpass 설치 (0) | 2020.10.26 |
yum cache 삭제 방법 (0) | 2020.07.07 |