Package: tacacs+
Version: 4.0.4.19-11
Severity: minor
Tags: patch

Hello,

the tacacs_plus initscript supports the reload action, but does not
document this in the usage line

Please change

echo "Usage: $N {start|stop|force-stop|restart|force-reload|status|check}" >&2

to 

echo "Usage: $N 
{start|stop|force-stop|restart|force-reload|reload|status|check}" >&2

This is not a purely cosmetical change as it might see at the first 
glance. 

systemd, an sysvinit replacement, converts LSB initscripts to systemd
units using a generator program. Up to Debian version 44-4 it assumed all
init scripts supported the reload action, which broke quite a few of them
but worked fine for tacacs+. In 44-5, which is now in wheezy, a patch was
added to only use reload for the LSB init files which support them. This
is done heuristically by looking for "reload" in the Usage line. See this
commit

http://anonscm.debian.org/gitweb/?p=pkg-systemd/systemd.git;a=commit;h=c839c5f5c98ea112588cc7ce7eef8485413ee11e

Since tacacs+ does not list reload the capability is not set, which makes
invoke-rc.d/systemctl in the logrotate stanza fail miserably

/etc/cron.daily/logrotate:
Failed to issue method call: Job type reload is not applicable for unit
tacacs_plus.service.
invoke-rc.d: initscript tacacs_plus, action "reload" failed.
error: error running non-shared postrotate script for
/var/log/tac_plus.log of '/var/log/tac_plus.log
/var/log/tac_plus.acct '
Failed to issue method call: Job type reload is not applicable for unit
tacacs_plus.service.
invoke-rc.d: initscript tacacs_plus, action "reload" failed.
error: error running non-shared postrotate script for
/var/log/tac_plus.acct of '/var/log/tac_plus.log
/var/log/tac_plus.acct '
run-parts: /etc/cron.daily/logrotate exited with return code 1

I don't think this will qualify as wheezy material right now
unfortunately, so I think we will have to live with it for this release.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tacacs+ depends on:
ii  adduser      3.113+nmu3
ii  libc6        2.13-35
ii  libpam0g     1.1.3-7.1
ii  libtacacs+1  4.0.4.19-11
ii  libwrap0     7.6.q-24
ii  python       2.7.3~rc2-1

tacacs+ recommends no packages.

tacacs+ suggests no packages.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to