It should. Here's the parsing code:

https://github.com/memcached/memcached/blob/master/memcached.c#L5179

getopt will return in order of the original command line (I believe) so you 
should be overriding and using UDP. You can always check by looking at open 
sockets on your system.

On Wednesday, May 18, 2016 at 9:01:46 AM UTC-7, Yan Zhou wrote:
>
> Hello,
>
> I am running memcached on RHEL7.  I want memcached to run on UDP port 
> 11211.
>
> Memcached by default runs on TCP ports (option –p),    in  
> /etc/systemconfig/memcached    OPTION  I set it to “-U”  which is UDP.
>
>
> The following log shows that it runs on both TCP and UDP as the command 
> line has both -p and -U options. 
>
>
> Does the 2nd overrides the 1st?  Or, did I miss something?
>
>
> Yan
>
>  
>
> [root@dcasde02 ~]# systemctl status memcached
>
> â— memcached.service - Memcached
>
>    Loaded: loaded (/usr/lib/systemd/system/memcached.service; disabled; 
> vendor preset: disabled)
>
>    Active: active (running) since Wed 2016-05-18 15:45:20 UTC; 1min 1s ago
>
>  Main PID: 24409 (memcached)
>
>    CGroup: /system.slice/memcached.service
>
>            └─24409 /usr/bin/memcached -u memcached -p 11211 -m 1024 -c 
> 1024 -v -U 11211 -l 0.0.0.0
>
>  
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to