- 05 Jul, 2022 3 commits
-
-
Ben Morrice authored
Use macro for pid file location See merge request !9
-
Steve Traylen authored
-
Steve Traylen authored
Previously a warning was given: ``` /usr/lib/systemd/user/aklog.service:9: PIDFile= path is not absolute, ignoring: ${XDG_RUNTIME_DIR}/krenew.pid ``` Replace this with the macro '%t' , see `man systemd.service` which expanded to the same thing and presumably `verify` is smart enough to know this will be a result. End result after patch: ``` ● aklog.service - Set up AFS tokens and renew Kerberos Loaded: loaded (/usr/lib/systemd/user/aklog.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/user/aklog.service.d └─kdestroy.conf Active: active (running) since Tue 2022-07-05 10:49:20 CEST; 6min ago Process: 1590359 ExecStartPre=/usr/bin/aklog (code=exited, status=0/SUCCESS) Main PID: 1590375 (krenew) CGroup: /user.slice/user-16568.slice/user@16568.service/aklog.service └─1590375 /usr/bin/krenew -a -K 30 -i -v -L -t -p /run/user/16568/krenew.pid ``` as expected and: ``` $ systemctl show --user aklog -p PIDFile PIDFile=/run/user/16568/krenew.pid ```
-
- 01 Jul, 2022 5 commits
-
-
Ben Morrice authored
-
Ben Morrice authored
enable epel-testing during test phase See merge request !8
-
Ben Morrice authored
-
Ben Morrice authored
Drop Hard Requirement on AFS See merge request !7
-
Steve Traylen authored
Add the `-a` option. Quoting the man page: > When run with either the -K flag or a command, always renew tickets each time krenew wakes up. Without this option, krenew will only try to renew a ticket as often as necessary to prevent the ticket from expiring. With this option, krenew will renew tickets according to the interval specified with the -K flag. > This behavior probably should have been the default behavior of -K. The default was not changed to avoid changes for existing users, but for new applications, consider always using -a with -K.
-
- 30 Jun, 2022 7 commits
-
-
Steve Traylen authored
-
Steve Traylen authored
-
Steve Traylen authored
-
Steve Traylen authored
-
Steve Traylen authored
-
Steve Traylen authored
krenew can create a pid file and systemd can use it so may as well
-
Steve Traylen authored
Renewal of kerberos tickets is useful even if no AFS is present. Obvious example is aiadm-homeless. In reality the aklog call could be completly removed since `-t` to kstart does this. Note it is not considered fatal to kstart if aklog is missing. After this change: ``` ls /usr/bin/aklog ls: cannot access '/usr/bin/aklog': No such file or directory ``` but we still have ``` systemctl --user status aklog.service ● aklog.service Loaded: loaded (/home/straylen/.config/systemd/user/aklog.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/user/aklog.service.d └─kdestroy.conf Active: active (running) since Thu 2022-06-30 10:22:50 CEST; 2min 36s ago Process: 3303634 ExecStartPre=/usr/bin/aklog (code=exited, status=0/SUCCESS) Main PID: 3303636 (krenew) CGroup: /user.slice/user-16568.slice/user@16568.service/aklog.service └─3303636 /usr/bin/krenew -K 30 -i -v -L -t ``` So weird how it has process id and status=0/SUCCESS for it but does. The downside of this is of course if aklog was present but failing for some reason this would not be noticed....
-
- 18 Jan, 2022 2 commits
-
-
Daniel Juarez authored
Build for CS9 See merge request !4
-
Daniel Juarez authored
-
- 02 Aug, 2021 2 commits
-
-
Ben Morrice authored
-
Ben Morrice authored
Resolve Assignment outside of section. Ignoring. See merge request !3
-
- 30 Jul, 2021 1 commit
-
-
Steve Traylen authored
Journal was showing: ``` Jul 30 11:16:39 lxplus805.cern.ch systemd[811083]: /usr/lib/systemd/user/aklog.service:1: Assignment outside of section. Ignoring. Jul 30 11:16:39 lxplus805.cern.ch systemd[811083]: /usr/lib/systemd/user/aklog.service:2: Assignment outside of section. Ignoring. Jul 30 11:16:39 lxplus805.cern.ch systemd[811083]: /usr/lib/systemd/user/aklog.service:3: Assignment outside of section. Ignoring. ``` Also removed is RemainAfterExit - since this command runs forever in normal circumstance RemainAfterExit makes no sense to me.
-
- 02 Mar, 2021 4 commits
-
-
Alex Iribarren authored
Build an {8 stream, stream 8} Version See merge request !2
-
Alex Iribarren authored
-
Steve Traylen authored
-
Steve Traylen authored
-
- 17 Jan, 2020 2 commits
-
-
Ben Morrice authored
Buildrequire systemd for rpm macros See merge request !1
-
With cern-aklog-systemd-user-1.0-1.el8.cern there are unxpanded macros ``` rpm -ql cern-aklog-systemd-user /%{_userunitdir}/aklog.service ``` and ``` postinstall scriptlet (using /bin/sh): %systemd_user_post aklog.service preuninstall scriptlet (using /bin/sh): %systemd_user_preun aklog.service postuninstall scriptlet (using /bin/sh): %systemd_user_postun_with_restart aklog.service ``` Buildrequire systemd to ensure they evaluated at rpm build time.
-
- 13 Jan, 2020 9 commits
-
-
Ben Morrice authored
-
Ben Morrice authored
-
Ben Morrice authored
-
Ben Morrice authored
-
Ben Morrice authored
-
Ben Morrice authored
-
Ben Morrice authored
-
Ben Morrice authored
-
Ben Morrice authored
-