Age | Commit message (Collapse) | Author | Files |
|
Patch to fix FS#24879, clearing terminal text formatting after
nonexistent daemon script failure in rc.d.
Signed-off-by: Jacob Okamoto <jacobokamoto@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
By default all script should be run as root.
If NEED_ROOT=0 is set before loading /etc/rc.d/functions in a rc.d scripts, this will not apply.
This allow script with only some part which require root level to call need_root() function
at beginning of those parts.
Close FS#24095
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
This patch allow rc.d list started and rc.d list stopped which list respectively
only started and stopped daemons
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
These are run from a context where PATH will be set, so defining
absolute paths is unnecessary.
|
|
Signed-off-by: Dave Reisner <d@falconindy.com>
|
|
Conflicts:
rc.d
Trivial conflict with dave's eval purge.
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
Signed-off-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
We need to do this to allow a correct detection of terminal colors in functions sourced by rc.d scripts
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
With new name of script, vim doesn't reconize correctly file format. We need to set it explicitly.
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
|
|
- print daemon text with C_CLEAR and not C_MAIN
- print rc name based on $0 (in case of renaming)
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|
|
To avoid conflict with plan9 rc shell we need to rename our rc.
Original name come from debian invoke-rc.d, shortened into rc.
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Signed-off-by: Tom Gundersen <teg@jklm.no>
|