logrotate script needs to redirect stderr too
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Fix Released
|
Low
|
Andreas Hasenack | ||
Landscape Server |
Fix Released
|
Low
|
Andreas Hasenack | ||
landscape-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The landscape-client logrotate script needs to also redirect stderr to /dev/null, or else we get an error when the process is not running:
root@nsn2:~# logrotate -f /etc/logrotate.
cat: /var/run/
kill: 2: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
error: error running postrotate script for /var/log/
cat: /var/run/
kill: 2: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
error: error running postrotate script for /var/log/
cat: /var/run/
kill: 2: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
error: error running postrotate script for /var/log/
cat: /var/run/
kill: 2: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
kill -l [exitstatus]
error: error running postrotate script for /var/log/
root@nsn2:~# /etc/init.
* Starting the landscape-client daemon [ OK ]
root@nsn2:~# logrotate -f /etc/logrotate.
root@nsn2:~#
Or if the pid file is incorrect:
root@nsn2:~# logrotate -f /etc/logrotate.
kill: 2: No such process
error: error running postrotate script for /var/log/
kill: 2: No such process
error: error running postrotate script for /var/log/
kill: 2: No such process
error: error running postrotate script for /var/log/
kill: 2: No such process
error: error running postrotate script for /var/log/
Changed in landscape-client: | |
importance: | Undecided → Low |
Changed in landscape: | |
importance: | Undecided → Low |
milestone: | none → thames-pre-8 |
Changed in landscape: | |
milestone: | thames → thames+1 |
Changed in landscape-client: | |
status: | New → In Progress |
Changed in landscape: | |
status: | New → In Progress |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
Changed in landscape: | |
milestone: | thames+1 → thames |
status: | In Progress → Fix Committed |
Changed in landscape: | |
milestone: | thames → thames+1 |
Changed in landscape-client: | |
status: | New → Confirmed |
Changed in landscape: | |
milestone: | mountainview-pre-1 → mountainview-pre-2 |
Changed in landscape: | |
milestone: | mountainview-pre-2 → mountainview-pre-3 |
Changed in landscape: | |
milestone: | mountainview-pre-3 → mountainview-pre-4 |
Changed in landscape: | |
milestone: | mountainview-pre-4 → mountainview-pre-5 |
Changed in landscape: | |
milestone: | mountainview-pre-5 → mountainview-pre-6 |
Changed in landscape: | |
milestone: | mountainview-pre-6 → mountainview-pre-7 |
Changed in landscape: | |
milestone: | mountainview-pre-7 → mountainview-pre-8 |
Changed in landscape-client: | |
assignee: | nobody → ahasenack |
Changed in landscape: | |
assignee: | nobody → ahasenack |
Changed in landscape: | |
status: | Fix Committed → Fix Released |
Changed in landscape: | |
milestone: | mountainview-pre-8 → mountainview |
status: | Fix Released → Fix Committed |
Changed in landscape-client: | |
status: | Fix Committed → Fix Released |
Changed in landscape: | |
status: | Fix Committed → Fix Released |
Pushed for thames-pre-9