OpenBSD CVS

CVS log for src/etc/Attic/rc.shutdown


[BACK] Up to [local] / src / etc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.13, Mon Jul 14 09:04:02 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED

rc.{local,securelevel,shutdown} become examples.  If versions of them
are created in /etc, they are executed (they used to be sourced) to
avoid polluting the rc variable space.  The powerdown= and securelevel=
features are removed; they are likely only used by 2 people.  the
secureleve is now always raised; this is the only sensible default.
ok ajacoutot

Revision 1.12 / (download) - annotate - [select for diffs], Fri Apr 22 06:08:14 2011 UTC (13 years ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.11: +1 -11 lines
Diff to previous 1.11 (colored)

Move the rc.d(8) bits from rc.{local,shutdown} directly into /etc/rc.
By default, rc.{local,shutdown} don't output anything anymore.

original idea from schwarze@
discussed with deraadt@ and no objection from millert@
ok schwarze@ robert@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 17 16:43:51 2011 UTC (13 years, 2 months ago) by robert
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

- introduce the INRC environment variable so that rc.subr(8) knows if it
  gets called from rc.local or rc.shutdown
- notify the user if a given operation was successfull or not by appending
  the (ok) or (failed) strings to the end of the daemon name
- hide stdout and stdin unless RC_DEBUG=1 is set, otherwise all the function
  names will be printed out and all output sent to stdin or stdout
- since from now on rc.subr is taking care of printing out the daemon names
  on startup, we don't need to do this from rc.{local,shutdown} anymore

brainkilling work done by me and ajacoutot@, ok ajacoutot@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 26 08:09:35 2010 UTC (13 years, 5 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Do like in rc.local and print the daemon name before running rc_stop.

ok robert@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 17 13:43:19 2010 UTC (13 years, 6 months ago) by ajacoutot
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Consistency and remove the >50 spaces after 'do'...

ok robert@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 26 20:56:03 2010 UTC (13 years, 6 months ago) by robert
Branch: MAIN
Changes since 1.7: +12 -4 lines
Diff to previous 1.7 (colored)

Add a simple 'rc' system to base in order to start/stop/restart/reload
services installed by the ports system (for now).
It only uses pgrep/pkill to handle these processes. A manual page will
come later.

'put it in' deraadt@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 22 00:41:59 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

ok there is a good reason not to do this yet

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 21 22:53:45 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

make powerdown the default; discussed with jason

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 3 18:11:48 1999 UTC (24 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.4: +4 -13 lines
Diff to previous 1.4 (colored)

have shutdown code run /etc/rc with arg of "shutdown"; rc.shutdown becomes  completely admin-editable

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 25 19:32:17 1999 UTC (24 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

silence chmod too, for non-writeable /var; fries

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 20 16:51:04 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

do not use -n with user-edited section between

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 15 14:31:52 1999 UTC (24 years, 10 months ago) by provos
Branch: MAIN
Changes since 1.1: +5 -1 lines
Diff to previous 1.1 (colored)

move /etc/host.random to /var/db for readonly /, save the entropy state
into /var/db/host.random at shutdown time, so we can make use of it
during reboot to seed our random pool. ok millert@ angelos@ niklas@

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jul 6 07:55:03 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN

your basic rc.shutdown file

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.