[Bug 268641] www/redmine50: fix logfile path for thin server

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 29 Dec 2022 14:34:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268641

            Bug ID: 268641
           Summary: www/redmine50: fix logfile path for thin server
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mikael@FreeBSD.org
          Reporter: olevole@olevole.ru
          Assignee: mikael@FreeBSD.org
             Flags: maintainer-feedback?(mikael@FreeBSD.org)

Created attachment 239120
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=239120&action=edit
www/redmine50: fix logfile path for thin server

The ruby 'thin' server does not use an absolute path for logs file/dir. 
This leads to problems running Redmine on readonly bases (for example in jails
with nullfs RO base):

--
redmine5:/@[17:26] # service redmine start
2022-12-29 17:26:32 +0300 Deleting stale PID file tmp/pids/thin.pid
/usr/local/lib/ruby/3.0/fileutils.rb:253:in `mkdir': Read-only file system @
dir_s_mkdir - /log (Errno::EROFS)
        from /usr/local/lib/ruby/3.0/fileutils.rb:253:in `fu_mkdir'
        from /usr/local/lib/ruby/3.0/fileutils.rb:231:in `block (2 levels) in
mkdir_p'
        from /usr/local/lib/ruby/3.0/fileutils.rb:229:in `reverse_each'
        from /usr/local/lib/ruby/3.0/fileutils.rb:229:in `block in mkdir_p'
        from /usr/local/lib/ruby/3.0/fileutils.rb:211:in `each'
        from /usr/local/lib/ruby/3.0/fileutils.rb:211:in `mkdir_p'
        from
/usr/local/lib/ruby/gems/3.0/gems/thin-1.8.1/lib/thin/daemonizing.rb:56:in
`daemonize'
        from
/usr/local/lib/ruby/gems/3.0/gems/thin-1.8.1/lib/thin/controllers/controller.rb:62:in
`start'
        from
/usr/local/lib/ruby/gems/3.0/gems/thin-1.8.1/lib/thin/runner.rb:203:in
`run_command'
        from
/usr/local/lib/ruby/gems/3.0/gems/thin-1.8.1/lib/thin/runner.rb:159:in `run!'
        from /usr/local/lib/ruby/gems/3.0/gems/thin-1.8.1/bin/thin:6:in `<top
(required)>'
        from /usr/local/bin/thin:25:in `load'
        from /usr/local/bin/thin:25:in `<main>'
--

We can fix the logfile path via rc.d/redmine script ( check `thin -h` for --log
args )

-- 
You are receiving this mail because:
You are the assignee for the bug.