Bug #2879
closedSome init scripts installed on a Rudder server don't have LSB headers
Description
As explained by Gonéri in #2735 :
/etc/init.d/cfengine-community, /etc/init.d/slapd, /etc/init.d/jetty init scripts don't have LSB headers here.
root@srv00015:~# dpkg -l|grep rudder ii rudder-cfengine-community 2.3.8-squeeze0 Configuration management and audit tool - CFEngine server component ii rudder-inventory-endpoint 2.3.8-squeeze0 Configuration management and audit tool - service to receive inventory data ii rudder-inventory-ldap 2.3.8-squeeze0 Configuration management and audit tool - OpenLDAP ii rudder-jetty 2.3.8-squeeze0 Configuration management and audit tool - Jetty application server ii rudder-policy-templates 2.3.8-squeeze0 Configuration management and audit tool - policy templates ii rudder-reports 2.3.8-squeeze0 Configuration management and audit tool - reports database ii rudder-server-root 2.3.8-squeeze0 Configuration management and audit tool - root server base package ii rudder-webapp 2.3.8-squeeze0 Configuration management and audit tool - webapp
root@srv00015:~# for i in `dpkg -l|grep rudder|awk '{print $2}'`; do dpkg -L $i ; done|grep '/etc/init.d/'|xargs head -n 10 ==> /etc/init.d/cfengine-community <== #!/bin/bash #==================================================================== # Start/stop script for Cfengine Community # (http://www.cfengine.org). # # chkconfig: 2345 85 15 # description: Cfengine Community # ### BEGIN INIT INFO ==> /etc/init.d/slapd <== #!/bin/sh #==================================================================== # Start/stop script for OpenLDAP (2.2 minimum) # (http://www.openldap.org). # Use BerkeleyDB utilities and save data in LDIF format. # # chkconfig: 2345 85 15 # description: OpenLDAP # ==> /etc/init.d/jetty <== #!/usr/bin/env bash # # Startup script for jetty under *nix systems (it works under NT/cygwin too). # To get the service to restart correctly on reboot, uncomment below (3 lines): # ======================== # chkconfig: 3 99 99 # description: Jetty 7 webserver # processname: jetty # ======================== ==> /etc/init.d/rudder-server-root <== #!/bin/sh #============================================== # Start/stop script for all Rudder components # #============================================== # ### BEGIN INIT INFO # Provides: rudder # Required-Start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $network $syslog
Updated by Jonathan CLARKE about 12 years ago
- Target version changed from 2.4.0~rc1 to 2.4.0~rc2
Updated by Nicolas PERRON about 12 years ago
- Status changed from 2 to Discussion
I've checked all our init scripts on a Rudder 2.3.8 installation but didn't find any missing LSB header:
root@squeezedev:~# dpkg -l|grep rudder ii rudder-cfengine-community 2.3.8-squeeze0 Configuration management and audit tool - CFEngine server component ii rudder-inventory-endpoint 2.3.8-squeeze0 Configuration management and audit tool - service to receive inventory data ii rudder-inventory-ldap 2.3.8-squeeze0 Configuration management and audit tool - OpenLDAP ii rudder-jetty 2.3.8-squeeze0 Configuration management and audit tool - Jetty application server ii rudder-policy-templates 2.3.8-squeeze0 Configuration management and audit tool - policy templates ii rudder-reports 2.3.8-squeeze0 Configuration management and audit tool - reports database ii rudder-server-root 2.3.8-squeeze0 Configuration management and audit tool - root server base package ii rudder-webapp 2.3.8-squeeze0 Configuration management and audit tool - webapp
root@squeezedev:~# for i in `dpkg -l|grep rudder|awk '{print $2}'`; do dpkg -L $i ; done|grep '/etc/init.d/'|xargs echo /etc/init.d/cfengine-community /etc/init.d/slapd /etc/init.d/jetty /etc/init.d/rudder-server-root
root@squeezedev:~# for i in `dpkg -l|grep rudder|awk '{print $2}'`; do dpkg -L $i ; done|grep '/etc/init.d/'|xargs grep -A 8 "BEGIN INIT INFO" /etc/init.d/cfengine-community:### BEGIN INIT INFO /etc/init.d/cfengine-community-# Provides: cfengine-community /etc/init.d/cfengine-community-# Required-Start: $remote_fs $syslog /etc/init.d/cfengine-community-# Required-Stop: $remote_fs $syslog /etc/init.d/cfengine-community-# Should-Start: $network $time /etc/init.d/cfengine-community-# Should-Stop: $network $time /etc/init.d/cfengine-community-# Default-Start: 2 3 4 5 /etc/init.d/cfengine-community-# Default-Stop: 0 1 6 /etc/init.d/cfengine-community-# Short-Description: Cfengine Community -- /etc/init.d/slapd:### BEGIN INIT INFO /etc/init.d/slapd-# Provides: slapd /etc/init.d/slapd-# Required-Start: $remote_fs $syslog /etc/init.d/slapd-# Required-Stop: $remote_fs $syslog /etc/init.d/slapd-# Should-Start: $network $time /etc/init.d/slapd-# Should-Stop: $network $time /etc/init.d/slapd-# Default-Start: 2 3 4 5 /etc/init.d/slapd-# Default-Stop: 0 1 6 /etc/init.d/slapd-# Short-Description: OpenLDAP -- /etc/init.d/jetty:### BEGIN INIT INFO /etc/init.d/jetty-# Provides: jetty /etc/init.d/jetty-# Required-Start: $local_fs $remote_fs $network $syslog slapd /etc/init.d/jetty-# Required-Stop: $local_fs $remote_fs $network $syslog /etc/init.d/jetty-# Default-Start: 2 3 4 5 /etc/init.d/jetty-# Default-Stop: 0 1 6 /etc/init.d/jetty-# Short-Description: Jetty 7 webserver /etc/init.d/jetty-# Description: Jetty init script modified by Normation /etc/init.d/jetty-### END INIT INFO -- /etc/init.d/rudder-server-root:### BEGIN INIT INFO /etc/init.d/rudder-server-root-# Provides: rudder /etc/init.d/rudder-server-root-# Required-Start: $local_fs $remote_fs $network $syslog /etc/init.d/rudder-server-root-# Required-Stop: $local_fs $remote_fs $network $syslog /etc/init.d/rudder-server-root-# Default-Start: 2 3 4 5 /etc/init.d/rudder-server-root-# Default-Stop: 0 1 6 /etc/init.d/rudder-server-root-# Short-Description: Rudder root server /etc/init.d/rudder-server-root-# Description: Rudder root server including all components required to run /etc/init.d/rudder-server-root-### END INIT INFO
root@squeezedev:~# grep -A 8 "BEGIN INIT INFO" /etc/init.d/apache2 ### BEGIN INIT INFO # Provides: apache2 # Required-Start: $local_fs $remote_fs $network $syslog $named # Required-Stop: $local_fs $remote_fs $network $syslog $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: true # Short-Description: Start/stop apache2 web server ### END INIT INFO
root@squeezedev:~# grep -A 8 "BEGIN INIT INFO" /etc/init.d/postgresql ### BEGIN INIT INFO # Provides: postgresql # Required-Start: $local_fs $remote_fs $network $time # Required-Stop: $local_fs $remote_fs $network $time # Should-Start: $syslog # Should-Stop: $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: PostgreSQL RDBMS server
Gonéri, could you checked with the same commands please ?
Updated by Jonathan CLARKE about 12 years ago
- Assignee changed from Nicolas PERRON to Gonéri Le Bouder
There seems to be some confusion here.
Gonéri, you ran the same command, but concluded that LSB headers were missing. I see that they are present, but not always at the top of the script. Is this what bothers you? Is this something that is not correct?
Please let me know what issue you see here.
Updated by Nicolas PERRON about 12 years ago
- Target version changed from 2.4.0~rc2 to 2.4.0~rc1
Updated by Jonathan CLARKE about 12 years ago
- Status changed from Discussion to Rejected
To the best of our knowledge, all init scripts installed by Rudder have LSB headers present and correct. If you think we have missed something, please re-open this ticket.
Updated by Jonathan CLARKE about 12 years ago
- Target version changed from 2.4.0~rc1 to 2.4.0~beta5
Updated by Nicolas PERRON almost 12 years ago
- Project changed from Rudder to 34
- Category deleted (
11)
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging