Bug 296971 - devel/athens: startup always fails instantly
Summary: devel/athens: startup always fails instantly
Status: Closed FIXED
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: 2026-07-22 01:34 UTC by Robert William Vesterman
Modified: 2026-08-16 19:09 UTC (History)
2 users (show)

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


Attachments
patch to fix rc script (1.14 KB, patch)
2026-08-11 18:08 UTC, Einar Bjarni Halldórsson
einar: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert William Vesterman 2026-07-22 01:34:16 UTC
I just upgraded to the latest devel/athens, and it no longer starts up. Instead, it instantly fails with:

=====================================
flag provided but not defined: -T
Usage of /usr/local/bin/athens:
  -config_file string
    	The path to the config file
=====================================

I strongly believe this is due to the recent change for bug #292551 ("devel/athens: syslog messages don't really identify it"). It looks to me like /usr/local/etc/rc.d/athens was changed to add a "-T {name}" to the daemon command, but as it was added *after* the command that daemon is supposed to run (i.e. athens itself), it is interpreted as being a param for athens, not one for daemon.
Comment 1 Robert William Vesterman 2026-07-22 02:21:17 UTC
Yeah, just tried moving the new param to precede the athens command. It starts up fine now.

And, incidentally, athens is now calling itself "athens" instead of "daemon" in syslog, so the fix for bug #292551 is good (as long as rc.d/athens is changed as I've indicated here). Thank you for that!
Comment 2 Einar Bjarni Halldórsson 2026-08-11 18:08:09 UTC
Created attachment 273653 [details]
patch to fix rc script

Move the -T parameter to un-break the athens rc script
Comment 3 Robert William Vesterman 2026-08-15 21:16:57 UTC
Any chance of Einar Bjarni Halldórsson's patch making it into the port? I just updated Athens to 0.18.1_1, which was released yesterday. It overwrote the change that I had made (which was essentially the same as in the patch), and thus once again made Athens totally unusable.
Comment 4 commit-hook freebsd_committer freebsd_triage 2026-08-16 11:10:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e18dbf56ffd925975fd0325ea1d96e34ab4083f3

commit e18dbf56ffd925975fd0325ea1d96e34ab4083f3
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2026-08-16 10:32:00 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2026-08-16 11:08:53 +0000

    devel/athens: Fix rc script

    PR:             296971
    Reported by:    pi

 devel/athens/Makefile        | 2 +-
 devel/athens/files/athens.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 5 Robert William Vesterman 2026-08-16 19:09:25 UTC
Thank you!