"Fossies" - the Fresh Open Source Software Archive

Member "amavisd-new-2.11.1/amavisd-snmp-subagent_init.sh" (27 Apr 2014, 547 Bytes) of package /linux/misc/amavisd-new-2.11.1.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 # PROVIDE: amavisd_snmp_subagent
    4 # REQUIRE: DAEMON
    5 # KEYWORD: shutdown
    6 
    7 . /etc/rc.subr
    8 
    9 name="amavisd_snmp_subagent"
   10 desc="Amavis SNMP AgentX"
   11 rcvar="amavisd_snmp_subagent_enable"
   12 
   13 command=/usr/local/sbin/amavisd-snmp-subagent-zmq
   14 command_interpreter=/usr/bin/perl
   15 
   16 load_rc_config $name
   17 
   18 : ${amavisd_snmp_subagent_enable:="NO"}
   19 : ${amavisd_snmp_subagent_pidfile:="/var/run/amavisd-snmp-subagent.pid"}
   20 : ${amavisd_snmp_subagent_flags:="-P ${amavisd_snmp_subagent_pidfile}"}
   21 
   22 pidfile=${amavisd_snmp_subagent_pidfile}
   23 
   24 run_rc_command "$1"