Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- varags
- MANTIS
- Redirect
- Eclipse
- Apache Lucene
- SpringSource Tool Suite
- jsp
- STS
- 자바스크립트
- 자바
- Bootstrap
- javascript
- html
- WebView
- decompiler
- MSsql
- TextBox
- C#
- MS-SQL
- 이클립스
- Web Service
- Java
- 안드로이드
- 컬럼명
- scrollView
- 웹뷰
- asp.net
- Maven
- Android
- 웹 서비스
Archives
- Today
- Total
bboks.net™
Spring Boot 앱 systemctl 등록 본문
Centos 7 기준 (7 미만에서는 다른 방법으로 등록)
/etc/systemd/system 으로 이동 [앱이름].service 파일 생성 (예. bboks.service)
service 파일 내용
[Unit]
Description=서비스 명
[Service]
User=centos
WorkingDirectory=/home/centos/앱 디렉터리
ExecStart=/usr/bin/java -Djsse.enableSNIExtension=false -Dspring.profiles.active=production -jar /home/centos/앱 디렉터리/앱.jar
SuccessExitStatus=143
TimeoutStopSec=10
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
-Dspring.profiles.active 는 spring profile active를 사용할 경우
-Djsse.enableSNIExtension 는 hand shake 오류가 발생할 경우