Ralf S. Engelschall wrote:
On Wed, May 30, 2007, Victor G. Bolshakov wrote:

 You need to add several correction:
 1.tacacs.spec: --with-tacplus_pid=%{l_prefix}/var/tacacs/tac_plus.pid ->
 --with-tacplus_pid=%{l_prefix}/var/tacacs/
 Tacacs+ create PID file depend on listening port, so it don't wont to know
 full path

 2. rc.tacacs: add tacacs_cfgfile="@l_prefix@/etc/tacacs/tacacs.conf" to
 %common section
 Tacacs+ need config file throuth -C command line parameter
need to change name to tac_plus.conf


 3. rc.tacacs: @l_prefix@/sbin/tac_plus -> @l_prefix@/bin/tac_plus -C
 $tacacs_cfgfile
 Install copied  tac_plus into bin not sbin
not needed for last package


 4. i cant stop tacacs using "openpkg rc tacacs stop", i'm doesn't enough
 about OpenPKG internals so i simple comment some lines in rc.tacacs

(4) is because of (1). If the PID file is dyamically
generated the rc.tacacs will not know about it!
Can tac_plus be shutdown without knowing the PID filename?
To be more correct, tac_plus create PID file tac_plus.pid for default (49) port and tac_plus.pid.PORT for configured port with PORT number. So for default config tac_plus.pid exists and "[ -f /openpkg/var/tacacs/tac_plus.pid ] && kill -9 `cat /openpkg/var/tacacs/tac_plus.pid`"will stop tac_plus. i think problem in "rcService tacacs active no && exit 0"
______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to