Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#32157 - [sshguard] doesn't read all parameters configuration from /etc/conf.d/sshguard file
Attached to Project:
Community Packages
Opened by Gabriel Machado (Geek2France) - Monday, 22 October 2012, 12:57 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Wednesday, 24 October 2012, 13:36 GMT
Opened by Gabriel Machado (Geek2France) - Monday, 22 October 2012, 12:57 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Wednesday, 24 October 2012, 13:36 GMT
|
DetailsDescription:
The sshguard daemon reads only the first parameter from SSHGUARD_ARGS variable located in the /etc/conf.d/sshguard file Additional info: - package version : community/sshguard 1.5-6 /etc.conf.d/sshguard : SSHGUARD_ARGS="-p 3600 -s 86400" /var/log/auth.log : Oct 22 12:37:52 myhotname sshguard[808]: Started successfully [(a,p,s)=(40, 3600, 1200)], now ready to scan. As you can see in the /var/log/auth.log file, only the first parameter -p is used. The second parameter -s is ignored and is setted to its default value (1200). Steps to reproduce: Install sshguard as explained in the wiki. Mdify the /etc/conf.d/sshguard to specify more than parameter. Launch the daemon with this systemd command : systemctl start sshguard.service Temporary solution : Only add one argument in the file /etc/conf.d/sshguard and add your others parameters to the script /usr/lib/systemd/scripts/sshguard-journalctl. Example : /usr/bin/journalctl -afbp info -n0 SYSLOG_FACILITY=4 SYSLOG_FACILITY=10 | /usr/sbin/sshguard -l /var/log/auth.log -l- -s 86400 -p 3600 "$@" |
This task depends upon
Closed by Massimiliano Torromeo (mtorromeo)
Wednesday, 24 October 2012, 13:36 GMT
Reason for closing: Fixed
Additional comments about closing: sshguard-1.5-7
Wednesday, 24 October 2012, 13:36 GMT
Reason for closing: Fixed
Additional comments about closing: sshguard-1.5-7
So I suggest the maintainers of this package simply remove the EnvironmentFile entry of the service file; it goes against the standard that we have put in place for most packages.
If i copy the script to /etc/systemd/system and i apply modifications, the modified script will be overwritten by a package upgrade or not ?
@Massimiliano : Good idea to keep compatibility for the moment. But if the /etc/conf.d/* works correctly when used with /etc/rc.conf (not verified), i think it's not necessary that is working with systemd too.
Sergej: See https://www.archlinux.org/news/systemd-is-now-the-default-on-new-installations/ and in particular "individual packages may now start relying on the system being booted with systemd". We have no use for /etc/conf.d/ anymore.
Gabriel: Nothing under /etc/systemd/system ever gets overwritten; packages write to /usr/lib/systemd/system (and it is your job to merge if you made modifications).
I think I am just going to drop EnvironmentFile from the systemd service.