Bug 49446 - univention-updater unnecessarily sends message: cp: cannot stat '/var/run/apache2.pid'
univention-updater unnecessarily sends message: cp: cannot stat '/var/run/apa...
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - univention-updater
UCS 4.4
Other Linux
: P5 minor (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-05-10 14:45 CEST by Lukas Zumvorde
Modified: 2019-06-05 09:13 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.011
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Error handling
Max CVSS v3 score:
zumvorde: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Zumvorde univentionstaff 2019-05-10 14:45:15 CEST
The univention-updater sometimes sends out messages like:
cp: cannot stat '/var/run/apache2.pid': No such file or directory

I believe this is caused by the line 
185:  cp /var/run/apache2.pid /var/run/apache2/apache2.pid
in base/univention-updater/script/postup.sh.

A fix could be to copy only if /var/run/apache2.pid exists.

diff script/postup.sh script/postup.old.sh
185c185
< [ -e /var/run/apache2.pid ] && cp /var/run/apache2.pid /var/run/apache2/apache2.pid
---
> cp /var/run/apache2.pid /var/run/apache2/apache2.pid

This bug might also exist in previous Versions.