1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

Need little help with HAProxy getting it to run (no permission)???

Discussion in 'Asuswrt-Merlin' started by minhgi, May 16, 2019.

  1. minhgi

    minhgi Occasional Visitor

    Joined:
    Feb 8, 2016
    Messages:
    20
    Just asking for help with getting HAProxy run on my AC5300. Linux command isn't my strong suite. My haproxy.cfg is already configured i'm getting permission deny to run it. Picture should be more sufficient. Let me know if I need to provide any more information.

    AsusRouter:/tmp/home/root# /opt/etc/init.d/S22haproxy
    -sh: /opt/etc/init.d/S22haproxy: Permission denied

    #!/bin/sh
    # Tweak for performance
    MAX_RAM="64" # Ram in MB
    MAX_CONNECTIONS="165530"
    CONFIGFILE="/opt/etc/haproxy.cfg"
    PIDFILE="/var/run/haproxy.pid"
    DIR="/opt/tmp"
    ENABLED=yes
    PROCS=haproxy
    ARGS="-f $CONFIGFILE -p $PIDFILE -m $MAX_RAM -n $MAX_CONNECTIONS -q -C $DIR -D"
    PREARGS=""
    DESC=$PROCS
    PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    . /opt/etc/init.d/rc.func
     
  2. ColinTaylor

    ColinTaylor Part of the Furniture

    Joined:
    Mar 31, 2014
    Messages:
    8,317
    Location:
    UK
    Code:
    chmod 755 /opt/etc/init.d/S22haproxy
     
  3. minhgi

    minhgi Occasional Visitor

    Joined:
    Feb 8, 2016
    Messages:
    20
    Thks. will go home later and give it a try.
     
  4. minhgi

    minhgi Occasional Visitor

    Joined:
    Feb 8, 2016
    Messages:
    20
    The startup script is running but still can't get haproxy to stay alive. Could be my haproxy.cfg isn't configured properly. That I need to figure myself.

    Sent from my Lenovo TB-8704X using Tapatalk