Hi,

First time you should not make any changes to target/cris-
axis-linux-gnu/ directly. This is the job of the Makefile.

Create a directory in * *packages/initscripts/net-snmp if one does not 
exist.

In packages/initscripts/net-snmp/ create a Makefile file and add the follow:

include $(AXIS_TOP_DIR)/tools/build/Rules.axis

OWN = -o root -g root

install:
    $(INSTALL) $(OWN) -m 0644 net-snmp.conf 
"$(prefix)"/etc/net-snmp.conf (optional)
    $(INSTALL) $(OWN) -m 0755 rc "$(prefix)"/etc/init.d/net-snmp
    $(LN) -sf ../init.d/net-snmp "$(prefix)"/etc/rc3.d/S99net-snmp
    $(LN) -sf ../init.d/net-snmp "$(prefix)"/etc/rc4.d/S99net-snmp
    $(LN) -sf ../init.d/net-snmp "$(prefix)"/etc/rc5.d/S99net-snmp


In packages/initscripts/net-snmp/ create a rc file and add the follow:

#! /bin/sh

. /etc/init.d/functions.sh

case "$1" in
    start)
        begin "Starting net-snmp"
        start-stop-daemon --start -b -x /<INSTDIR>/net-snmp
        end $?
        ;;
    stop)
        begin "Stopping net-snmp"
        start-stop-daemon --stop -n net-snmp
        end $?
        ;;
    restart)
        begin "Restarting net-snmp"
        start-stop-daemon --stop -n net-snmp
        start-stop-daemon --start -b -x /<INSTDIR>/net-snmp
        end $?
    ;;
    *)   
    error "Usage: $0 start|stop|restart"
    ;;
esac


Edit configure-files/post and add the following line at the end of the file.

sub packages/initscripts/net-snmp



Please note this is an example you must change to match your installation.

Regards,

Lloyd Bailey.

-- 
IT Department
Pharma Nord (UK) Ltd
Telford Court
Morpeth
Northumberland
NE61 2DB
Tel:. +44 1670 519 989
Fax:. +44 1670 534 903


Reply via email to