Initscripts in main need init-function love

Bug #8336 reported by Nathaniel McCallum
26
Affects Status Importance Assigned to Milestone
sysvinit (Ubuntu)
Invalid
Medium
Ian Jackson

Bug Description

When I thought I had done all the initscripts in main, it was from the packages
in aptitude. I downloaded every package (debmirror), then ran a check on every
package to determine if it had an initscript. This is the list of what is left
to do:

backuppc
bind9
bluez-utils
courier-authdaemon
courier-imap-ssl
courier-pop-ssl
cyrus21-common
dhcp3-server
dovecot-common
exim4-base
festival
freenet6
heartbeat
isdnutils-base
mailman
makedev
mgetty-fax
mysql-server
nessusd
snmpd
nis
slapd
openssh-server
postgresql
ppp
pptpd
quagga
quota
radvd
raidtools2
setserial
shorewall
smartmontools
squid
sudo
vsftpd
xinetd

Revision history for this message
Nathaniel McCallum (nmccallum) wrote :

*** Bug 8271 has been marked as a duplicate of this bug. ***

Revision history for this message
Nathaniel McCallum (nmccallum) wrote :

Created an attachment (id=446)
backuppc package diff

Revision history for this message
Nathaniel McCallum (nmccallum) wrote :

Created an attachment (id=447)
bind9 package diff

Revision history for this message
Nathaniel McCallum (nmccallum) wrote :

Created an attachment (id=448)
bluez-utils package diff

Revision history for this message
Nathaniel McCallum (nmccallum) wrote :

Created an attachment (id=449)
courier package diff

Revision history for this message
Nathaniel McCallum (nmccallum) wrote :

Created an attachment (id=450)
cyrus package diff

Revision history for this message
Nathaniel McCallum (nmccallum) wrote :

Created an attachment (id=451)
dhcp3 package diff

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=809)
LSB version of laptop-mode

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=810)
alsa init script

Revision history for this message
Thom May (thombot) wrote :

*** Bug 10691 has been marked as a duplicate of this bug. ***

Revision history for this message
Thom May (thombot) wrote :

(In reply to comment #2)
> Created an attachment (id=446) [edit]
> backuppc package diff
>

 backuppc (2.1.0-7ubuntu1) hoary; urgency=low
 .
   * Nathaniel McCallum:
     - debian/backuppc.init: pretty initscript
     - debian/control: versioned depend on lsb-base
 .
   * Remove dependency on wwwconfig-common

Revision history for this message
Thom May (thombot) wrote :

(In reply to comment #3)
> Created an attachment (id=447) [edit]
> bind9 package diff
>

 bind9 (1:9.2.4-1ubuntu1) hoary; urgency=low
 .
   * Nathaniel McCallum
     - debian/init.d: pretty initscript
     - debian/control: versioned depend on lsb-base

Revision history for this message
Thom May (thombot) wrote :

(In reply to comment #4)
> Created an attachment (id=448) [edit]
> bluez-utils package diff
>

 bluez-utils (2.10-4ubuntu1) hoary; urgency=low
 .
   * Nathaniel McCallum
     - debian/init.d: pretty initscript
     - debian/control: versioned depend on lsb-base

Revision history for this message
Thom May (thombot) wrote :

(In reply to comment #5)
> Created an attachment (id=449) [edit]
> courier package diff
>

 courier (0.47-3ubuntu1) hoary; urgency=low
 .
   * Nathaniel McCallum
    - debian/*.init: pretty initscripts
    - debian/control: version depends on lsb-base

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=835)
LSB init script for makedev

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=836)
LSB init script for sudo

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=837)
LSB init script for smartmontools

Revision history for this message
Matt Zimmerman (mdz) wrote :

netbase also needs changes (I see an "rp_filter" message interspersed with
normal output during boot)

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=839)
LSB init script for netbase

I've added the LSB functions, however, it just prints "rp_filter", perhaps we
should replace this by something more meaningfull? (What's rp_filter anyway?)

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=840)
LSB init script for quota

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=841)
LSB init script for vsftpd

Revision history for this message
Ruben Vermeersch (ruben) wrote :

Created an attachment (id=849)
LSB init script for alsa

Updated alsa patch, applies cleanly again

Revision history for this message
Daniel Robitaille (robitaille) wrote :

Created an attachment (id=1700)
init-function patch for /etc/init.d/xinetd

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

*ping*

Are all these patches already applied, so we can close this bug?

Revision history for this message
Carthik Sharma (carthik) wrote :

Have the patches been applied?

May this bug be Closed?

Thank you.

Revision history for this message
Matt Zimmerman (mdz) wrote :

Most of these I know to have been fixed, a few may have been removed from main, and a few most likely remain to be done. I think all of the attached patches have been applied or obsoleted, though the patches do not cover all of the packages in the list.

A good quick check is to see if the package depends on lsb-base, so if someone could process this list and see what remains to be done, that would be helpful.

Revision history for this message
Gary Coady (garycoady) wrote :

I did a quick check of these packages, with the following results:

Doesn't use lsb-base functions:
cyrus21-base
dovecot-common
exim4-base
festival
heartbeat
mailman
mgetty-fax
mysql-server
nessusd
nis
pptpd
quagga
quota
radvd
setserial
shorewall
slapd
snmpd
xinetd

No depends on lsb-base, though functions are used in the init script:
backuppc
smartmontools

Insufficient dependencies:
dhcp3-server depends on lsb-base, should be >> 3.0-1ubuntu4

Other issues:
bluez-utils writes "hcid sdpd" on a second line.

There are a few packages which just depend on lsb-base, no particular version specified. I don't know if it's worth going through this list though (I pointed out the dependency above because of the particular usplash function call).

Revision history for this message
Gary Coady (garycoady) wrote : init-function love for setserial

Uses log_action_begin_msg, log_action_cont_msg, log_action_end_msg, log_warning_msg to replace previous echo statements.
Also hides stdout from setserial.

Revision history for this message
Gary Coady (garycoady) wrote : init-function love for xinetd

Use log_daemon_msg, log_end_msg, log_warning_msg instead of echo in init script.

Revision history for this message
Gary Coady (garycoady) wrote : init-function love for net-snmp

Use log_daemon_msg, log_progress_msg, log_end_msg instead of echo statements in init script.

Revision history for this message
Gary Coady (garycoady) wrote : init-function love for bluez-utils

bluez-utils printed out the daemon names to stdout.
This patch uses log_daemon_msg and log_progress_msg instead of log_begin_msg and echo.
lsb-base dependency is also updated.

Revision history for this message
Gary Coady (garycoady) wrote : init-function love for quota

Added log_daemon_msg/log_warning_msg/log_end_msg/log_action_begin_msg/log_action_end_msg in init scripts, to replace echo commands.

Revision history for this message
Gary Coady (garycoady) wrote :

FYI, I opened separate bugs for a few of these issues (since I had patches) so they could be tracked separately:
bug 43551
bug 43569
bug 43573
bug 43574
bug 43575

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

None of these init scripts are actually provided by sysvinit/initscripts - so not sure how the bug ended up here.

Please open individual bugs for any remaining problems.

Changed in sysvinit:
status: Confirmed → Rejected
To post a comment you must log in.