Bug 287384 - devel/gitea-act_runner: Supervisor mode for daemon(8) [patch]
Summary: devel/gitea-act_runner: Supervisor mode for daemon(8) [patch]
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Muhammad Moinur Rahman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-08 09:48 UTC by Vyacheslav
Modified: 2025-06-08 09:48 UTC (History)
0 users

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


Attachments
patch for act_runner.in (1.43 KB, patch)
2025-06-08 09:48 UTC, Vyacheslav
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vyacheslav 2025-06-08 09:48:30 UTC
Created attachment 261087 [details]
patch for act_runner.in

If the server is not available when act_runner starts, act_runner terminates.
In my case, I have a jail with www/forgejo and act_runner. When jail starts, forgejo takes about 5 seconds to initialize a web server that act_runner could connect to, and during that time, act_runner terminates.

I used the patch in the attachment to put daemon(8) in supervisor mode, and that fixed my problem.

Notes:
1. This is a breaking change - previously set act_runner_flags specified in rc.conf are applied to daemon(8), not act_runner. To pass parameters to act_runner, act_runner_args is used.
2. The system must be updated due to FreeBSD-EN-25:06.daemon