1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh # PROVIDE: zabbix_agentd # REQUIRE: DAEMON # KEYWORD: shutdown . %%RC_SUBR%% name="zabbix_agentd" rcvar=${name}_enable load_rc_config $name eval : \${${rcvar}='NO'} command="%%PREFIX%%/bin/${name}" required_files="%%PREFIX%%/etc/zabbix/${name}.conf" run_rc_command "$1"