Initial daemon settings.

This commit is contained in:
Jeffrey Townsend
2016-01-07 19:58:01 +00:00
parent 7f04c15846
commit 98f67fe12a
2 changed files with 6 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_PVS_SYSLOG=1
GLOBAL_CFLAGS += -DAIM_CONFIG_INCLUDE_DAEMONIZE=1
GLOBAL_CFLAGS += -DAIM_CONFIG_AIM_MAIN_FUNCTION=snmp_subagent_main
GLOBAL_CFLAGS += -DSNMP_SUBAGENT_CONFIG_INCLUDE_MAIN=1
GLOBAL_CFLAGS += -DSNMP_SUBAGENT_CONFIG_AGENT_NAME=\"onlp-snmpd\"
GLOBAL_CFLAGS += -DSNMP_SUBAGENT_CONFIG_AGENT_DESCRIPTION="\"ONLP SNMP Agent\""
GLOBAL_CFLAGS += -g
LIBONLP := $(shell $(ONLPM) --find-file onlp:$(ARCH) libonlp.so)

View File

@@ -1,12 +1,13 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: faultd
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Provides: onlp-snmpd
# Required-Start: $snmpd $syslog
# Required-Stop: $snmpd $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start ONLP SNMP Agent
# Description: NET SNMP AGENTX
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin