Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
tacacs+
> init.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File init.diff of Package tacacs+ (Revision 10)
Currently displaying revision
10
,
show latest
diff -Naur tac_plus.F4.0.4.alpha/tac_plus.init tac_plus.F4.0.4.alpha-PAM-0.4/tac_plus.init --- tac_plus.F4.0.4.alpha/tac_plus.init Wed Dec 31 19:00:00 1969 +++ tac_plus.F4.0.4.alpha-PAM-0.4/tac_plus.init Fri Feb 2 18:08:42 2001 @@ -0,0 +1,79 @@ +#!/bin/sh +# +# description: Cisco's tacacs+ access, authorization, and accounting server. +# chkconfig: 345 15 85 +# + +# Source function library. +. /etc/rc.d/init.d/functions + +# Source networking configuration. +. /etc/sysconfig/network + +# Check that networking is up. +[ ${NETWORKING} = "no" ] && exit 0 + +[ -f /usr/local/sbin/tac_plus ] || exit 0 + +[ -f /etc/tacacs/tac_plus.cfg ] || exit 0 + +# =========================================================================== +# Normally, only messages at error level or above are written to the log. +# To write TACACS+ info messages to the log, this option takes a parameter +# based on a sum of the following options: +# number information about +# 1 general +# 2 parsing +# 4 forking +# 8 authorization +# 16 authentication +# 32 passwords +# 64 accounting +# 128 configuration +# 256 packet +# 512 hex +# 1024 md5 hash +# 2048 xor +# 4096 clean +# 8192 subst +# +# For more information on the various debug flags, see your Cisco manual. + +DEBUG_LEVEL=255 +#DEBUG_LEVEL=31 +# See how we were called. +case "$1" in + start) + # Start daemons. + echo -n "Starting tacacs+: " + /usr/local/sbin/tac_plus -C /etc/tacacs/tac_plus.cfg \ + -l /var/log/tacacs/tac_plus.log \ + -w /var/log/tacacs/tac_plus.who \ + -d $DEBUG_LEVEL && \ + success || failure + echo + touch /var/lock/subsys/tacacs + ;; + stop) + # Stop daemons. + echo -n "Shutting down tacacs+: " + killproc tac_plus + rm -f /var/lock/subsys/tacacs + echo + ;; + status) + status tac_plus + exit $? + ;; + restart) + $0 stop + $0 start + exit $? + ;; + reload) + kill -USR1 `cat /var/run/tac_plus.pid` + ;; + *) + echo "Usage: tacacs {start|stop|status|restart|reload}" + exit 1 +esac