From: Buchan M. <bg...@st...> - 2009-03-16 13:48:06
|
On Monday 16 March 2009 14:56:28 Geoff Hallford wrote: > Thanks. Forgot about the execute (duh!). I don't believe devmon was > designed to run as a normal user It was. The Mandriva package, the packages I provide for RHEL, and all my systems, have devmon running as non-root (as 'devmon'). > though, as I also can't stop the daemon as > a normal user, Which user the daemon runs as, and which user can start/stop it are different issues. > as killproc is in /sbin. I know I can move that to /bin but > I don't think that is safe. The init script may not have been tested with your distro ... on Red-Hat-style systems, killproc is a function defined in /etc/rc.d/functions, which is sourced by the init script. Newer versions of the initscripts package (e.g. RHEL5 and newer) have a killproc which works with pid files in subdirectories of /var/run, which is used correctly by devmon 0.3.1-b1 (and if not present, it uses an internal function which is basically a copy of the newer killproc) to more reliably shut devmon down when running as non-root. > Stopping Devmon: /etc/rc.d/devmon: line 28: killproc: command not found Here are some options: 1)Adjust the PATH in the init script to include /sbin 2)Submit a patch or new init script for your OS/distro 3)Use packages supplied by your OS/distro Regards, Buchan |