You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
669 B
27 lines
669 B
24 years ago
|
#!@l_prefix@/lib/rpm/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`
|
||
|
|