[ZBXNEXT-1232] Add LSB tags to the Debian init scrips Created: 2012 May 24  Updated: 2019 Jul 03  Resolved: 2019 Jul 03

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Installation (I)
Affects Version/s: 2.0.0
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Tom Van Looy Assignee: Kodai Terashima
Resolution: Fixed Votes: 1
Labels: debian, initscripts, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates ZBXNEXT-890 Zabbix packaging for various GNU/Linu... Closed
is duplicated by ZBX-8352 The sample Debian init.d start/stop s... Closed
is duplicated by ZBX-5279 Debian init scripts misses LSB tags Closed
is duplicated by ZBX-5431 Debian init scripts misses LSB tags Closed

 Description   

Can you add LSB tags to the Debian init.d scripts? For example:

#! /bin/sh

      1. BEGIN INIT INFO
  1. Provides: zabbix-agent
  2. Required-Start: $local_fs $remote_fs
  3. Required-Stop: $local_fs $remote_fs
  4. Should-Start: $all
  5. Should-Stop: $all
  6. Default-Start: 2 3 4 5
  7. Default-Stop: 0 1 6
  8. Short-Description: Start/stop Zabbix-agent
  9. Description: Start/stop Zabbix-agent
      1. END INIT INFO
        #
  10. Zabbix agent start/stop script.
    #
  11. Copyright (C) 2000-2011 Zabbix SIA

And:

      1. BEGIN INIT INFO
  1. Provides: Zabbix daemon
  2. Required-Start: $local_fs $remote_fs $network $syslog $named
  3. Required-Stop: $local_fs $remote_fs $network $syslog $named
  4. Default-Start: 2 3 4 5
  5. Default-Stop: 0 1 6
  6. X-Interactive: true
  7. Short-Description: Start/stop Zabbix server daemon
      1. END INIT INFO
        #
  8. Zabbix daemon start/stop script.
    #
  9. Copyright (C) 2000-2011 Zabbix SIA


 Comments   
Comment by dimir [ 2012 Aug 08 ]

We have a separate ZBXNEXT-890 for packaging. This includes soon coming Debian packages that will have proper init scripts.

Comment by Kodai Terashima [ 2012 Aug 13 ]

The LSB tags in debian official package are:

### 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

### BEGIN INIT INFO
# Provides:          zabbix-server
# Required-Start:    $remote_fs $network
# Required-Stop:     $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Should-Start:      mysql
# Should-Stop:       mysql
# Short-Description: Start zabbix-server daemon
### END INIT INFO
Comment by Paul Shore [ 2014 Jun 12 ]

If you can't get the up to date packages into the official Debian repo, then could you please update the sample scripts in the misc directory structure please.

Comment by Predictix Operations [ 2014 Jul 22 ]

I am getting the same thing on configuring zabbix agents.

mybox:/usr/src/zabbix# update-rc.d zabbix-agent defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'zabbix-agent' missing LSB tags and overrides

Is there any plan to address this, or at least information on how to fix this ourselves in the meantime?

Generated at Fri Mar 29 16:44:32 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.