From: Michal J. <mi...@ha...> - 2003-09-07 05:33:26
|
On Sat, Sep 06, 2003 at 08:51:32PM -0600, Michal Jaegermann wrote: > > So how I am supposed to start that daemon on a node? Anybody with > ideas? I will allow myself to respond to my own posting. It looks like that I found a suitable hack. With /etc/beowulf/node_up as follows: #!/bin/sh /usr/lib/beoboot/bin/node_up $* || exit 1 echo "bpsh $1 /usr/sbin/gmond" | at now 2> /dev/null this does what I wanted. Clearly this may be used to run much more extensive sets of commands. The trick seems to be that 'at' executes everything in a different context than a direct startup for a node. Still if somebody have better ideas I am all ears. Interestingly enogh 'ps uwwaxf' has the following to show on a master node: root 3897 0.0 0.0 0 0 ? RWN 23:15 0:00 [gmond] root 3898 0.0 0.0 0 0 ? RWN 23:15 0:00 \_ [gmond] root 3899 0.0 0.0 0 0 ? RWN 23:15 0:00 \_ [gmond] root 3900 0.0 0.0 0 0 ? RWN 23:15 0:00 \_ [gmond] root 3901 0.0 0.0 0 0 ? RWN 23:15 0:00 \_ [gmond] root 3902 0.0 0.0 0 0 ? RWN 23:15 0:00 \_ [gmond] root 3903 0.0 0.0 0 0 ? SWN 23:15 0:00 \_ [gmond] root 3904 0.0 0.0 0 0 ? SWN 23:15 0:00 \_ [gmond] although 'bpsh 0 ps uwwaxf' comes only with this: root 3897 0.0 0.1 15816 1384 ? SN 23:15 0:00 /usr/sbin/gmond Michal |