OpenBSD CVS

CVS log for src/etc/rc.d/amd


[BACK] Up to [local] / src / etc / rc.d

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.11 / (download) - annotate - [select for diffs], Thu May 26 11:27:03 2022 UTC (2 years ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.10: +2 -5 lines
Diff to previous 1.10 (colored)

Introduce a new daemon_execdir variable for changing to a specified directory
before running rc_rcexec.

Based on an proposal from openbsd.tech at aisha.cc
ok robert@ abieber@

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 21 12:42:21 2022 UTC (2 years ago) by ajacoutot
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

${rcexec} -> rc_exec

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jan 11 21:09:26 2018 UTC (6 years, 4 months ago) by rpe
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

- change [] tests to [[]]
- change -a, -o to &&, || inside [[]]
- remove unecessary quoting inside [[]]
- remove X"" constructs inside [[]]
- remove \ (line continuation) in case of &&, || and pipes
- replace backticks with $()

discussed with and OK aja@
OK tb

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 11 19:52:12 2018 UTC (6 years, 4 months ago) by rpe
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Change the shebang line from /bin/sh to /bin/ksh in all base rc.d
daemon scripts.

discussed with and OK aja@
OK tb

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jul 15 13:50:54 2015 UTC (8 years, 10 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

Fix base rc.d scripts after the recent rc.subr change.

ok halex@

Revision 1.6 / (download) - annotate - [select for diffs], Sun Sep 1 15:02:35 2013 UTC (10 years, 9 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Properly pass daemon_flags to amd(8).

ok dcoppa@ sthen@

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 21 08:07:33 2012 UTC (11 years, 6 months ago) by ajacoutot
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

rc_restart() does not exists. What the 'restart' action does is to run
'stop' then 'start'; so to prevent this daemon from restarting itself,
rc_stop=NO is enough.

ok robert@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Aug 22 08:02:04 2011 UTC (12 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Read amd_master using print -rn, fixes problems if the file has multiple
lines. Problem noticed by me, this solution from halex@.

ok halex aja

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jul 16 09:33:29 2011 UTC (12 years, 10 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored)

Start amd in /etc/amd so it can find maps in files. ok robert@

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 8 04:29:54 2011 UTC (12 years, 11 months ago) by ajacoutot
Branch: MAIN
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored)

Cleanups and fixes.

ok robert@

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jul 8 02:15:34 2011 UTC (12 years, 11 months ago) by robert
Branch: MAIN

Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change
also simplyfies the changes because false || return 1 can be replaced
with false if that's the last call. thanks halex@!

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.