Есть такая штука tacacs+, да она старая-дырявая и прочее, но надо поставить.
Из консоли нормально стартует:
root@tacacs:~/tacacs-F4.0.4.28# /usr/sbin/tac_plus -C /etc/tacacs+/tac_plus.cfg
root@tacacs:~/tacacs-F4.0.4.28# ss -tanlp | grep 49
LISTEN 0 4096 0.0.0.0:49 0.0.0.0:* users:(("tac_plus",pid=11762,fd=0))
LISTEN 0 4096 [::]:49 [::]:* users:(("tac_plus",pid=11762,fd=2))
написал такой модуль:
[Unit]
Description=TACACS+ daemon instance tacacs
After=network.target
[Service]
Type=simple
ExecStart=/usr/sbin/tac_plus -C /etc/tacacs+/tac_plus.cfg
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failture
[Install]
WantedBy=multi-user.target
Стартовать не хочет:
root@tacacs:~/tacacs-F4.0.4.28# systemctl status tac_plus
* tac_plus.service - TACACS+ daemon instance tacacs
Loaded: loaded (/etc/systemd/system/tac_plus.service; enabled; preset: enabled)
Active: inactive (dead) since Wed 2025-01-15 11:43:13 UTC; 13min ago
Duration: 3ms
Docs: man:tac_plus(8)
man:tac_plus.conf(5)
Process: 11725 ExecStart=/usr/sbin/tac_plus -C /etc/tacacs+/tac_plus.cfg (code=exited, status=0/SUCCESS)
Main PID: 11725 (code=exited, status=0/SUCCESS)
CPU: 4ms
Jan 15 11:43:13 tacacs systemd[1]: Started tac_plus.service - TACACS+ daemon instance tacacs.
Jan 15 11:43:13 tacacs tac_plus[11725]: Reading config
Jan 15 11:43:13 tacacs tac_plus[11725]: Version F4.0.4.28 Initialized 1
Jan 15 11:43:13 tacacs tac_plus[11726]: Received signal 15, shutting down
Jan 15 11:43:13 tacacs tac_plus[11727]: Received signal 15, shutting down
Jan 15 11:43:13 tacacs systemd[1]: tac_plus.service: Deactivated successfully.