Bug 275214 - sysutils/monit: rc script fails with wrong monitrc permissions
Summary: sysutils/monit: rc script fails with wrong monitrc permissions
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-20 14:37 UTC by Frank Brendel
Modified: 2023-11-22 08:54 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (martinp)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Brendel 2023-11-20 14:37:01 UTC
The rc.d script fails on wrong permissions of the Monit configuration file.
Setting a command in monit_setup that would change the permissions doesn't work because monit_checkconf (set in restart/reload_precmd) is executed before.

Is it possible to fix the permissions within the monit_checkconf function?
Comment 1 Franco Fichtner 2023-11-21 10:00:23 UTC
After further investigation it makes more sense to fix the _setup rc script handling which allows to fix this via custom script:

https://reviews.freebsd.org/D36259

This can be closed IMO.  Sorry for the noise.


Cheers,
Franco
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2023-11-22 08:54:15 UTC
Closing as requested.