SnipsStartupScript

1. As root, install the file (below) in /etc/init.d/snips, then ln -s /etc/init.d/snips /etc/rc3.d/S60snips chmod u+x /etc/init.d/snips 2. As root, run: /etc/rc3.d/S60snips start 3. Check that there are two "hostmon-client" processes running.


 #!/bin/sh
 # snips startup script version 031119.1
 case $1 in
 'start')
        echo "Starting snips monitoring"
        /usr/bin/su snips -c "/export/home/snips/hostmon-osclients/hostmon-client &"
        ;;
 'stop')
      /usr/bin/kill `cat /tmp/hostmon-client.pid`
        ;;
 *)
        echo "usage: $0: {start|stop}"
        ;;
 esac

Category: SnipsCategory DocumentationCategory