Ticket #33476: Portfile.diff

File Portfile.diff, 552 bytes (added by barry.allard@…, 13 years ago)

This is a patch to the trunk databases/redis Portfile

  • Portfile

     
    6868
    6969startupitem.create  yes
    7070startupitem.start   "${prefix}/bin/redis-server ${prefix}/etc/redis-daemon.conf"
    71 startupitem.stop    "echo \"SHUTDOWN\" | nc localhost 6379"
     71startupitem.stop    "${prefix}/bin/redis-cli -p `grep '^[[:space:]]*port[[:space:]]*[0-9]*' ${prefix}/etc/redis-daemon.conf | grep -Eo '[0-9]+'` SHUTDOWN"
    7272
    7373notes "
    7474To start up a redis server instance use this command: