버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

...

  • 서버 재부팅 시 Crowd 자동으로 실행되도록 서비스로 등록
  • 사전에 start_crowd.sh 로 실행했다면 stop_crowd.sh 중지시키고 수행

코드 블럭
languagebash
themeEmacs
# /etc/systemd/system/crowd.service 파일 생성 및 편집
vi /etc/systemd/system/crowd.service

# 파일에 다음 코드 입력 후 저장
[Unit]
Description=Atlassian Crowd Server Service

[Service]
Type=forking
User=atlassian
ExecStart=/app/atlassian/atlassian-crowd-5.3.0/start_crowd.sh
ExecStop=/app/atlassian/atlassian-crowd-5.3.0/stop_crowd.sh

[Install]
WantedBy=multi-user.target

# 서비스 등록 및 서비스로 crowd 실행
sudo systemctl enable crowd.service
sudo systemctl daemon-reload
sudo systemctl start crowd.service
sudo systemctl status crowd.service

...