Usage of kill in logrotate script is non-portable

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The logrotate script uses

      kill -SIGALRM `cat /var/run/hudson.pid`

      which works fine for the bash builtin, but fails for /bin/kill, which only accepts

      usage: kill [ -s signal | -p ] [ -a ] pid ...
             kill -l [ signal ]

      on CentOS 5.

      Using kill -s SIGALRM would make both variants happy and increase portability.

            Assignee:
            Unassigned
            Reporter:
            Robert Munteanu
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: