[Bug 915215] Re: rc.local should support a runparts of rc.local.d
Scott Moser
smoser at ubuntu.com
Mon Jan 30 15:10:35 UTC 2012
just for reference, but I think i'm not going to use it, here is an
upstart job for rc.local.d scripts:
# rc-local-d - run scripts in /etc/rc.local.d in run-parts fashion
# after /etc/rc.local has finished
#
# This extends traditional rc.local to support run-parts
description "run scripts in /etc/rc.local.d at traditional rc.local timeframe"
author "Scott Moser <smoser at ubuntu.com>"
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [016]
console output
task
script
command -v run-parts >/dev/null || exit 0
[ -d /etc/rc.local.d ] || exit 0
exec run-parts /etc/rc.local.d
end script
--
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:
New
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