framon / cntlm

Clone of lp:ubuntu/cntlm with my local changes, as feature http://sourceforge.net/p/cntlm/feature-requests/32/ was rejected
GNU General Public License v2.0
6 stars 5 forks source link

Cntlm RMP install problem on CentOS7 #2

Open Shuliyey opened 9 years ago

Shuliyey commented 9 years ago

Hi

I realised Cntlm (installed through) RMP CentOS 7 didn't start as a daemon thread correctly.

The problem is caused by the daemon couldn't create a pid file at location /var/run/cntlm/cntlmd.pid

What I found in the daemon log is that the /var/run/cntlm folder doesn't exist in the first place. So I created the folder /var/run/cntlm and changed the owner of the folder to cntlm (since the daemon is trying to start cntlm as cntlm user).

This fixed the problem. (after I did sudo systemctl restart cntlm)

However everytime after I reboot my computer, I found that the folder /var/run/cntlm which I created to fix the problem, was gone. (This happens everytime)

Is this a CentOS bug or Cntlm bug?

Shuliyey commented 9 years ago

Sorry I actually found out that the folders in /var/run are created dynamically during a service startup.

So i guess this is a cntlm bug, which the /var/run/cntlm folder wasn't created during a service (or systemctl) startup?

Shuliyey commented 9 years ago

Hi

Sorry i did some more digging, I found out if I added these in the /etc/init.d/cntlmd script it works after reboot now

    PIDDIR=`dirname $PIDFILE 2>/dev/null`
    if [ -n "$PIDDIR" -a ! -d "$PIDDIR" ]; then
            mkdir -p "$PIDDIR" 2>/dev/null
            chown "$RUNAS" "$PIDDIR" 2>/dev/null
            chmod 755 "$PIDDIR" 2>/dev/null
    fi
framon commented 9 years ago

Hi

Sure it is a distro specific problem while providing daemon start script. In this way, it is out of scope of this repository.

Despite this, see this report https://bugzilla.redhat.com/show_bug.cgi?id=1042358 Maybe, there is a errata package for CentOS. What full version have you installed?

DenisKibe commented 5 months ago

Earn $1000 in Manta Network Tokens!

Manta Network

Steps to Earn:

  1. Connect Your Wallet:

  2. Use the Claim Method:

    • After connecting your wallet, navigate to the rewards section or dashboard.
    • Find the "Claim" option and click on it.
  3. Claim Your Prize:

    • Follow the on-screen instructions to complete the claiming process.
    • Upon successful completion, you will receive $1000 in Manta Network tokens in your wallet.
  4. Enjoy Your Tokens:

    • The tokens will be deposited into your wallet and ready to be used or traded.

Important Note:

Make sure to read the terms and conditions on the https://claim.mantarewards.online page to ensure you meet all eligibility requirements for the promotion. This offer is for a limited time, so don't miss out!

Winners: @XYUnknown, @frankwyw7, @raakasf, @Clinale, @Vespertinus, @cymcsg, @supercocoa