Você não pode selecionar mais de 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
26 linhas
673 B
26 linhas
673 B
#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc |
|
## |
|
## rc.amd -- Run-Commands for AMD |
|
## |
|
|
|
%config |
|
amd_enable="yes" |
|
|
|
%start -p 200 -u root |
|
test ".$amd_enable" != ".yes" && exit 0 |
|
@l_prefix@/sbin/amd -F @l_prefix@/etc/amd/amd.conf >/dev/null 2>&1 |
|
|
|
%stop -p 200 -u root |
|
test ".$amd_enable" != ".yes" && exit 0 |
|
kill -TERM `cat @l_prefix@/var/amd/amd.pid` |
|
|
|
%restart -u root |
|
test ".$amd_enable" != ".yes" && exit 0 |
|
kill -TERM `cat @l_prefix@/var/amd/amd.pid` |
|
sleep 2 |
|
@l_prefix@/sbin/amd -F @l_prefix@/etc/amd/amd.conf >/dev/null 2>&1 |
|
|
|
%reload -u root |
|
test ".$amd_enable" != ".yes" && exit 0 |
|
kill -HUP `cat @l_prefix@/var/amd/amd.pid` |
|
|
|
|