Bug #18334
closedkatello-backup fails when called from cron
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1330757
Description of problem:
katello-backup fails when called from within a wrapper script triggered by cron
Version-Release number of selected component (if applicable):
katello-common-2.2.0.19-1.el7sat
How reproducible:
Every single time
Steps to Reproduce:
1. katello-backup fails when called from within a wrapper script triggered by cron
Actual results:
The "service" alias doesn't work when attempting to stop the postgresql service. Instead of a backup being created the script fails with the following error:
/usr/bin/katello-backup:25:in ``': No such file or directory - service pos
tgresql stop (Errno::ENOENT)
from /usr/bin/katello-backup.small:25:in `<main>'
Expected results:
Execute katello-backup without error resulting in a satellite backup
Additional info:
Line 25 of /usr/share/katello/script/katello-backup :
`service postgresql stop`
Updated by Christine Fouant almost 8 years ago
- Project changed from Katello to Packaging
- Category deleted (
Backup & Restore)
Updated by Eric Helms almost 8 years ago
- Project changed from Packaging to Katello
Updated by Justin Sherrill almost 8 years ago
- Category set to Backup & Restore
- Translation missing: en.field_release set to 114
Updated by Justin Sherrill almost 8 years ago
- Assignee changed from Christine Fouant to Andrew Kofink
- Priority changed from Normal to High
- Target version set to 178
- Translation missing: en.field_release changed from 114 to 211
Updated by Andrew Kofink over 7 years ago
- Status changed from New to Rejected
- Translation missing: en.field_release changed from 211 to 166