1. 08 Aug, 2022 5 commits
  2. 05 Jul, 2022 3 commits
    • Ben Morrice's avatar
      Merge branch 'path' into 'master' · 796fce87
      Ben Morrice authored
      Use macro for pid file location
      
      See merge request !9
      796fce87
    • Steve Traylen's avatar
      Release 1.3-1 · d9b2c78b
      Steve Traylen authored
      d9b2c78b
    • Steve Traylen's avatar
      Use macro for pid file location · 26a626a7
      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
      ```
      26a626a7
  3. 01 Jul, 2022 5 commits
  4. 30 Jun, 2022 7 commits
    • Steve Traylen's avatar
      Release v1.2-1 · 571954c5
      Steve Traylen authored
      571954c5
    • Steve Traylen's avatar
      Ignore invalid URL · 7c427221
      Steve Traylen authored
      7c427221
    • Steve Traylen's avatar
      Remote inconsistant tabbing · fd7f368f
      Steve Traylen authored
      fd7f368f
    • Steve Traylen's avatar
      Correct BuildRequires for CentOS9 · cdd337f8
      Steve Traylen authored
      cdd337f8
    • Steve Traylen's avatar
      Remove double / · 74f9001b
      Steve Traylen authored
      74f9001b
    • Steve Traylen's avatar
      Create a PID file and use it · 21331c9b
      Steve Traylen authored
      krenew can create a pid file and systemd can use it so may as well
      21331c9b
    • Steve Traylen's avatar
      Drop Hard Reequirement on AFS · 2cec3eff
      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....
      2cec3eff
  5. 18 Jan, 2022 2 commits
  6. 02 Aug, 2021 2 commits
  7. 30 Jul, 2021 1 commit
    • Steve Traylen's avatar
      Resolve Assignment outside of section. Ignoring. · 0f243245
      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.
      0f243245
  8. 02 Mar, 2021 4 commits
  9. 17 Jan, 2020 2 commits
    • Ben Morrice's avatar
      Merge branch 'systemdmacros' into 'master' · 60095f82
      Ben Morrice authored
      Buildrequire systemd for rpm macros
      
      See merge request !1
      60095f82
    • Steve Traylen's avatar
      Buildrequire systemd for rpm macros · 4ebccc8d
      Steve Traylen authored and Ben Morrice's avatar Ben Morrice committed
      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.
      4ebccc8d
  10. 13 Jan, 2020 9 commits