Environment Variable HOME not set

Issue #457 resolved
Former user created an issue

when monit starts a process with "as uid" option, the variable HOME is not set. This behavior differs from cron which sets the variable. Some programs (e.g. X11) evaluate this variable.

Example:

check process conat with PIDFILE /home/mba/...
   start   program = "..."   as uid "mba"


monit -V
This is Monit version 5.18

cat /etc/*-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.3
DISTRIB_CODENAME=rosa
DISTRIB_DESCRIPTION="Linux Mint 17.3 Rosa"
NAME="Ubuntu"
VERSION="14.04.4 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.4 LTS"

Comments (2)

  1. Log in to comment