rc.local should support a runparts of rc.local.d
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Won't Fix
|
Wishlist
|
Unassigned | ||
sysvinit (Ubuntu) |
Triaged
|
Wishlist
|
Scott Moser |
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-
ProcVersionSign
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)
Related branches
- Scott Moser: Needs Resubmitting
- Clint Byrum (community): Needs Information
- Ubuntu branches: Pending requested
-
Diff: 100 lines (+55/-0)5 files modifieddebian/changelog (+8/-0)
debian/initscripts.conffiles (+1/-0)
debian/initscripts.postinst (+1/-0)
debian/initscripts.postrm (+1/-0)
debian/src/initscripts/etc/init.d/rc.local.d (+44/-0)
Changed in sysvinit (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Scott Moser (smoser) |
just for reference, sed is easly:
sed -i '$s/^exit 0$//'