[MacPorts] #61625: redis: wrong .conf file path in startupitem

MacPorts noreply at macports.org
Tue Mar 15 08:21:17 UTC 2022


#61625: redis: wrong .conf file path in startupitem
----------------------+----------------------
  Reporter:  ArtKoKo  |      Owner:  dgilman
      Type:  defect   |     Status:  assigned
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.6.4
Resolution:           |   Keywords:
      Port:  redis    |
----------------------+----------------------

Comment (by ArtKoKo):

 I think I understood the problem: with a default installation everything
 works fine.

 But if you change the PID path as suggested in the config file comment

 {{{
 # Note that on modern Linux systems "/run/redis.pid" is more conforming
 # and should be used instead.
 }}}

 then there is a conflict with the PID location statement given in the load
 .plist file :

 {{{
 <string>--pid=exec</string>
 }}}

 If you edit the .plist file the Redis upgrades overwrite the file...

 I changed all the paths to respect the convention of other ports :
 {{{
 /opt/local/etc/redis/redis.conf
 /opt/local/var/log/redis/redis.log
 /opt/local/var/run/redis/redis.pid
 /opt/local/var/db/redis/
 }}}

 and I apply a patch as soon as an MacPorts upgrade is applied.

-- 
Ticket URL: <https://trac.macports.org/ticket/61625#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list