Стартуем сервис поддержки динамического IP #!/bin/sh # # PROVIDE: noip2 # REQUIRE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable noip2: # noip2_enable (bool): Set to "NO" by default. # noip2_enable=${noip2_enable-"NO"} . /etc/rc.subr name="noip2" rcvar=`set_rcvar` command="/usr/local/bin/noip2" load_rc_config $name ### start_cmd="echo \"Starting ${name}.\"; /usr/bin/nice -5 ${command}" start_cmd="echo \"Starting ${name}.\"; ${command}" run_rc_command "$1" Шаблон, если вдруг забыл #!/bin/sh # # PROVIDE: utility # REQUIRE: DAEMON # KEYWORD: shutdown # # НЕ МЕНЯЙТЕ ЗДЕСЬ ЭТИ СТАНДАРТНЫЕ ЗНАЧЕНИЯ # ЗАДАВАЙТЕ ИХ В ФАЙЛЕ /etc/rc.conf # utility_enable=${utility_enable-"NO"} utility_flags=${utility_flags-""} utility_pidfile=${utility_pidfile-"/var/run/utility.pid"} . /etc/rc.subr name="utility" rcvar=`set_rcvar` command="/usr/local/sbin/utility" load_rc_config $name pidfile="${utility_pidfile}" start_cmd="echo \"Starting ${name}.\"; /usr/bin/nice -5 ${command} ${utility_flags} ${command_args}" run_rc_command "$1"