Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177552850
D61435.1794699536.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
D61435.1794699536.diff
View Options
diff --git a/share/man/man5/periodic.conf.5 b/share/man/man5/periodic.conf.5
--- a/share/man/man5/periodic.conf.5
+++ b/share/man/man5/periodic.conf.5
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 19, 2026
+.Dd November 11, 2026
.Dt PERIODIC.CONF 5
.Os
.Sh NAME
@@ -131,6 +131,13 @@
Refer to the
.Xr periodic 8
manual page for how script return codes are interpreted.
+.It Ao Ar dir Ac Ns Va _show_empty_output
+.Pq Vt bool
+Set to
+.Dq Li YES
+to still send an email even if no output was produced for the scripts
+found in
+.Ar dir .
.It Va anticongestion_sleeptime
.Pq Vt int
The maximum number of seconds to randomly sleep in order to smooth bursty loads
diff --git a/usr.sbin/periodic/periodic.8 b/usr.sbin/periodic/periodic.8
--- a/usr.sbin/periodic/periodic.8
+++ b/usr.sbin/periodic/periodic.8
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 18, 2020
+.Dd November 11, 2026
.Dt PERIODIC 8
.Os
.Sh NAME
@@ -136,11 +136,10 @@
.Ql /
and is not empty, it is assumed to contain a list of email addresses, and
the output is mailed to them.
-If
+If the script did not produce any output, no email is sent, unless
.Ao Ar basedir Ac Ns Va _show_empty_output
is set to
-.Dq Li NO ,
-then no mail will be sent if the output was empty.
+.Dq Li YES .
.Pp
If
.Ao Ar basedir Ac Ns Va _output
diff --git a/usr.sbin/periodic/periodic.sh b/usr.sbin/periodic/periodic.sh
--- a/usr.sbin/periodic/periodic.sh
+++ b/usr.sbin/periodic/periodic.sh
@@ -98,7 +98,7 @@
# set, assume the user didn't really want us to muck with it (it's a
# README file or has been disabled).
-success=YES info=YES badconfig=NO empty_output=YES # Defaults when ${run}_* aren't YES/NO
+success=YES info=YES badconfig=NO empty_output=NO # Defaults when ${run}_* aren't YES/NO
for var in success info badconfig empty_output; do
case $(eval echo "\$${arg##*/}_show_$var") in
[Yy][Ee][Ss]) eval $var=YES;;
@@ -144,7 +144,7 @@
done
done
if [ $empty = TRUE ]; then
- if [ $empty_output = TRUE ]; then
+ if [ $empty_output = YES ]; then
[ $processed = 1 ] && plural= || plural=s
echo "No output from the $processed file$plural processed"
fi
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 11:38 PM (2 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41734111
Default Alt Text
D61435.1794699536.diff (2 KB)
Attached To
Mode
D61435: periodic: Fix empty output check
Attached
Detach File
Event Timeline