#
7618c9e1 |
| 25-Apr-2024 |
Juraj Lutter <otis@FreeBSD.org> |
daemon: Add -C (--restart-count) option
Add a new option (-C, --restart-count) to specify the maximum number of times that the controlled process is restarted if restart (-r) is restarted.
Reviewed
daemon: Add -C (--restart-count) option
Add a new option (-C, --restart-count) to specify the maximum number of times that the controlled process is restarted if restart (-r) is restarted.
Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44944
show more ...
|
Revision tags: release/13.3.0 |
|
#
a6f795cc |
| 27-Dec-2023 |
Ihor Antonov <ihor@antonovs.family> |
daemon: fix clang-tidy warnings
Fixed narrowing conversions: - strtol replaced with strtonum with range check - read returns ssize_t - kevent.data explicitly cast to int before passing into strerror
daemon: fix clang-tidy warnings
Fixed narrowing conversions: - strtol replaced with strtonum with range check - read returns ssize_t - kevent.data explicitly cast to int before passing into strerror
While we we're here: - Defined and documented maximum restart delay. - Fixed typo in a comment. - Remove unused includes
Reviewed by: cperciva, kevans
show more ...
|
Revision tags: release/14.0.0 |
|
#
c1207678 |
| 18-Sep-2023 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
daemon.8: Document -u sets HOME, USER, and SHELL
Fixes: 6b3ad1d73732 When -u option is used also set USER, HOME and SHELL MFC after: 3 days
|
#
ee23e1e4 |
| 18-Sep-2023 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
daemon.8: Sort options in DESCRIPTION
MFC after: 3 days
|
#
a5bc8e8a |
| 18-Sep-2023 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
daemon.8: Use Cm where appropriate
MFC after: 3 days
|
#
735637f7 |
| 18-Sep-2023 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
daemon.8: Use Dv for signal names
MFC after: 3 days
|
#
fa9896e0 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line nroff pattern
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
|
Revision tags: release/13.2.0 |
|
#
0a402ad2 |
| 10-Feb-2023 |
Ihor Antonov <ihor@antonovs.family> |
daemon: add long_opts
Long options improve readability of scripts, makes code comprehension easier. This patch adds long options while preserving the existing CLI interface.
Also --help/-h option
daemon: add long_opts
Long options improve readability of scripts, makes code comprehension easier. This patch adds long options while preserving the existing CLI interface.
Also --help/-h option is added.
Reviewed by: allanjude, pauamma (both earlier versions), kevans Differential Revision: https://reviews.freebsd.org/D38244
show more ...
|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0 |
|
#
54c743e5 |
| 14-Jan-2021 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
Fix a typo
"and" is not a flag.
MFC after: 3 days
|
Revision tags: release/12.2.0 |
|
#
dffc6929 |
| 24-Sep-2020 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Fix a typo in the 366098.
Reported by: 0mp MFC after: 2 weeks (along with 366098)
|
#
4cd407ec |
| 24-Sep-2020 |
Maxim Sobolev <sobomax@FreeBSD.org> |
dd a new option (-H) to daemon(8) to catch SIGHUP and re-open output_file file when received.
The default system log rotation mechanism (newsyslog(8)) requires ability to send signal to a daemon in
dd a new option (-H) to daemon(8) to catch SIGHUP and re-open output_file file when received.
The default system log rotation mechanism (newsyslog(8)) requires ability to send signal to a daemon in order to properly complete rotation of the logs in an "atomic" manner without having to making a copy and truncating original file. Unfortunately our built-in mechanism to convert "dumb" programs into daemons has no way to handle this rotation properly. This change adds this ability, to be enabled by supplying -H option in addition to the -o option.
Reviewed by: markj, rpokala (manpages) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26526
show more ...
|
Revision tags: release/11.4.0, release/12.1.0 |
|
#
8b3bc70a |
| 08-Oct-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r352764 through r353315.
|
#
b6fa976d |
| 03-Oct-2019 |
Ian Lepore <ian@FreeBSD.org> |
Bump .Dd for earlier update (should have been part of r353024).
|
#
0ec0f10d |
| 03-Oct-2019 |
Ian Lepore <ian@FreeBSD.org> |
Clarify how the -f option for daemon(8) interacts with other options related to redirecting stdout and stderr.
|
Revision tags: release/11.3.0 |
|
#
415e34c4 |
| 29-Mar-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead@r345677
|
#
4f6714d5 |
| 25-Mar-2019 |
Michael Gmelin <grembo@FreeBSD.org> |
Correct contradictory information on default syslog logging priority.
MFC after: 1 week
|
Revision tags: release/12.0.0 |
|
#
9b5cb2f6 |
| 12-Nov-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r340235 through r340367.
|
#
a641e445 |
| 09-Nov-2018 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
Cross-reference nohup(1) and daemon(8).
Reviewed by: bcr Approved by: krion (mentor, implicit), mat (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D17920
|
#
14b841d4 |
| 11-Aug-2018 |
Kyle Evans <kevans@FreeBSD.org> |
MFH @ r337607, in preparation for boarding
|
#
bbd7a929 |
| 04-Aug-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r336870 through r337285, and resolve conflicts.
|
#
26e19aca |
| 01-Aug-2018 |
Mateusz Piotrowski <0mp@FreeBSD.org> |
Add a missing "Ar" macro to the description of the -R flag in the manpage.
Approved by: bjk (doc committer), krion (mentor) Differential Revision: https://reviews.freebsd.org/D16520
|
Revision tags: release/11.2.0 |
|
#
c1ee3587 |
| 16-Apr-2018 |
Ian Lepore <ian@FreeBSD.org> |
Fix cut-and-pasted line to have the right option letter.
Reported by: 0mp@ Pointy hat: ian@
|
#
37820b87 |
| 15-Apr-2018 |
Ian Lepore <ian@FreeBSD.org> |
Add an option to daemon(8) to specify a delay between restarts of a supervised program. The existing -r option has a hard-coded delay of one second. This change adds a -R option which takes a delay
Add an option to daemon(8) to specify a delay between restarts of a supervised program. The existing -r option has a hard-coded delay of one second. This change adds a -R option which takes a delay in seconds. This can be used to prevent log spam and rapid restarts, similar to init(8)'s behavior of adding a delay between rapid restarts when it's supervising a program.
show more ...
|
#
53c2c791 |
| 26-Jan-2018 |
Maxim Konovalov <maxim@FreeBSD.org> |
o A command line flag for the syslog_facility fixed in the SYNOPSIS.
PR: 225441
|
Revision tags: release/10.4.0, release/11.1.0 |
|
#
02ebdc78 |
| 31-Oct-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r307736 through r308146.
|