[Ubuntu 16.04] systemctl insserv: warning: script missing LSB tags and overrides
개발/Linux, System 2017. 10. 25. 12:28반응형
zabbix-agent 설치 간, 14.04 기준의 init.d 스크립트를 16.04에 systemctl 명령어로 추가를 하려했더니, 아래와 같이 경고가 발생하였다.
1 2 | $ systemctl enable zabbix-agent insserv: warning: script 'zabbix-agent' missing LSB tags and overrides |
systemctl를 이용하여 서비스를 등록할때는 LSB 태그가 필요하다는 경고였고, 저게 말은 Warning이지만 제대로 등록이 되질 않았다.
그렇기 때문에, LSB 태그를 아래와 같이 추가를 해주니, 정상적으로 등록이 되는 것을 확인하였다.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # # Zabbix agent start/stop script. # # Copyright (C) 2000-2012 Zabbix SIA ### BEGIN INIT INFO # Provides: zabbix-agent # Required-Start: $remote_fs $network # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start zabbix-agent daemon ... ### END INIT INFO |
반응형
'개발 > Linux, System' 카테고리의 다른 글
[Zabbix] active vs passive 동작 방식 (0) | 2017.11.07 |
---|---|
[Ubuntu 16.04] zabbix-agent의 /var/run/zabbix 폴더가 리붓 시 사라지는 현상 (0) | 2017.10.25 |
[Apache2] (22)Invalid argument: Couldn't set permissions on cross-process lock; check User and Group directives (0) | 2017.09.18 |
[Apache2] proxy websocket (0) | 2017.04.26 |
[SSH] sshd_config maxsessions (0) | 2017.04.25 |