[Bug 915215] Re: rc.local should support a runparts of rc.local.d

Scott Moser smoser at ubuntu.com
Wed Feb 29 13:35:59 UTC 2012


There has been some discussion on this bug in ubuntu-devel, and I
realize that reading some of the comments above may be confusing, so I
will summarize here.

 * The suggested merge proposal currently adds functional 'rc.local.d' behavior that would break anything.  It does that with a new sysvinit script (rc.local.d).  Clint suggested that it could/should be an upstart job, but I do not personally see that as an issue, nor do I think that by itself was blocking (The job could be changed to upstart later).
 * In the conversation on ubuntu-devel [1], Steve Langasek was not overjoyed by the idea of this change.  His primary concern seemed to be that it was not sysvinit's job to provide this functionality.

Going forward, to address Steve's concerns, it might be best to simply
add an rc.local.d package.  I'm not actively pushing on this for 12.04,
but may revisit in 12.10.

--
[1] http://irclogs.ubuntu.com/2012/02/07/%23ubuntu-devel.html#t20:12

** Changed in: sysvinit (Ubuntu)
   Importance: Low => Wishlist

** Changed in: sysvinit (Ubuntu)
       Status: In Progress => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sysvinit in Ubuntu.
https://bugs.launchpad.net/bugs/915215

Title:
  rc.local should support a runparts of rc.local.d

Status in “sysvinit” package in Ubuntu:
  Triaged

Bug description:
  the current rc.local script that gets installed is difficult to work
  with.

  For doing simple things like "i just want to run this at the  end of
  boot", the 'exit 0' at the end means  that human editing is almost
  required to do so without possibly breaking other content that might
  be in it.

  ie, right now we have:
  ---
  #!/bin/sh
  # some comments here

  exit 0
  ----

  that makes it very difficult to add a command.

  2 solutions for this:
  1.) drop 'exit 0', its completely unnecessary
  2.) support runparts

  runparts means something that wants to simply add a script can do so,
  and it can easily be deleted.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: initscripts 2.88dsf-13.10ubuntu8
  ProcVersionSignature: Ubuntu 3.2.0-7.13-generic 3.2.0-rc7
  Uname: Linux 3.2.0-7-generic x86_64
  ApportVersion: 1.90-0ubuntu1
  Architecture: amd64
  Date: Thu Jan 12 10:12:59 2012
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  ProcEnviron:
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: sysvinit
  UpgradeStatus: Upgraded to precise on 2011-11-07 (65 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/915215/+subscriptions




More information about the foundations-bugs mailing list