Code Monkey home page Code Monkey logo

Comments (5)

rkaw92 avatar rkaw92 commented on June 10, 2024
  1. Good catch! Sure, this is not intended. I'm going to fix it and release 0.2.1 soon. Hoping to cram in a few more fixes.
  2. This may be distro-specific. Are you using Ubuntu?

from pm2-zabbix.

kashak88 avatar kashak88 commented on June 10, 2024

Yes, the VM I've tested this on was a Ubuntu Server 14.04.

from pm2-zabbix.

rkaw92 avatar rkaw92 commented on June 10, 2024

Looks like Ubuntu mangles $HOME, as described here: http://unix.stackexchange.com/questions/91384/how-is-sudo-set-to-not-change-home-in-ubuntu-and-how-to-disable-this-behavior

This will have to be considered in the installation instructions/files somehow. I would like to avoid telling users to always set a custom PM2_HOME, at least as the default solution.

Can you check if this works in your sudoers file, instead of the Defaults provided in this repository?

Defaults:zabbix !requiretty, always_set_home

The above directive should make sudo set $HOME to that of the target user when zabbix is sudoing to it, so it should not be necessary to manually override PM2_HOME.

from pm2-zabbix.

kashak88 avatar kashak88 commented on June 10, 2024

I'll test this out in a few days and will report back

from pm2-zabbix.

kashak88 avatar kashak88 commented on June 10, 2024

It works! Thanks

from pm2-zabbix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.