Remote agent - CentOS 7 service 에 등록
이하 설정은 Root 계정으로 진행
Bamboo remote agent 를 CentOS 7 service 에 등록
참고 URL : How to I install bamboo agent as a daemon under Linux?
# service 파일 생성 및 설정
$vi /etc/systemd/system/bamboo-agent.service
-----------------------------------------------------
[Unit]
Description=Bamboo remote agent service
After=network.target syslog.target
[Service]
User=agent
Group=agent
Type=forking
PIDFile=/opt/bamboo-agent/bin/bamboo-agent.pid
ExecStart=/opt/bamboo-agent/bin/bamboo-agent.sh start
ExecStop=/opt/bamboo-agent/bin/bamboo-agent.sh stop
[Install]
WantedBy=multi-user.target
-----------------------------------------------------
# 권한설정
$chmod 755 /etc/systemd/system/bamboo-agent.service
# systemd demon 을 reload 하여 추가한 service 파일을 인식
$systemctl daemon-reload
# service 등록, 실행, 상태확인
$systemctl enable bamboo-agent.service
$systemctl start bamboo-agent.service
$systemctl status bamboo-agent.service
|