Bug 435136 - /etc/cron.d/smolt requires smolt username but smolt-1.1-1 package doesn't create it
Summary: /etc/cron.d/smolt requires smolt username but smolt-1.1-1 package doesn't cre...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: smolt
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Mike McGrath
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-02-27 16:26 UTC by Gilles Detillieux
Modified: 2008-02-27 19:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-27 18:28:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gilles Detillieux 2008-02-27 16:26:01 UTC
Description of problem:
The /etc/cron.d/smolt crontab is set up to use the smolt username, as of the
update to version 1.1-1, but the smolt package doesn't create this username.  As
a result, cron logs these errors on startup:

Feb 26 17:09:52 localhost crond[2225]: CRON: error in (/etc/cron.d/smolt)
problem is (bad username)

Version-Release number of selected component (if applicable):
1.1-1.fc9.noarch (fc7 & fc8 likely also affected)

How reproducible:
Always

Steps to Reproduce:
1. "yum update" to update to smolt-1.1-1.fc9.noarch.rpm
2. reboot, or restart crond service
3. grep smolt /var/log/cron
  
Actual results:
Feb 26 17:09:52 localhost crond[2225]: CRON: error in (/etc/cron.d/smolt)
problem is (bad username)

Expected results:
No errors, cron reads crontab line and runs smoltSendProfile monthly.

Additional info:
%pre script should do a useradd, as most other packages do when they need a
dedicated username, and %preun script should likely do a userdel.  See rpcbind
or dovecot packages for examples of these.  Some packages (e.g. bind, gdm) don't
do userdel, but it's a bit tidier if they do.

Comment 1 Mike McGrath 2008-02-27 16:49:50 UTC
Buah crap, new I missed something.

Comment 2 Jeffrey C. Ollie 2008-02-27 18:28:32 UTC
Fixed in 1.1-2.

Comment 3 Fedora Update System 2008-02-27 19:39:12 UTC
smolt-1.1-2.fc8 has been submitted as an update for Fedora 8

Comment 4 Fedora Update System 2008-02-27 19:40:01 UTC
smolt-1.1-2.fc7 has been submitted as an update for Fedora 7


Note You need to log in before you can comment on or make changes to this bug.