upstart-file-bridge 'EVENT=create' not working for directories
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
Fix Released
|
Medium
|
James Hunt |
Bug Description
description "Test Upstart"
start on file FILE=/home/
stop on runlevel [!2345]
script
exec /bin/echo -e "<- upstart\t"$(date) >> /home/ubuntu/
end script
Problem:
If 'EVENT=create' is set - as referenced in the manpage of the upstart-file-bridge - the above script doesn't fire as expected. If I remove the event specification and the script reacts to all file events, ~/Desktop/out.txt gets a new line. Only 'EVENT=modify' seems to work.
Further:
'EVENT=delete' doesn't work too. If I did no mistake, than its a separate bug.
Note:
The upstart cookbook's upstart-file-bridge example calls the create event not 'EVENT=create' like in the man page, but 'EVENT=created'. Both versions doesn't work.
PS: I'm a Upstart newbie, so maybe I just did something wrong.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: upstart 1.10-0ubuntu1
ProcVersionSign
Uname: Linux 3.11.0-4-generic x86_64
.etc.init.
.etc.init.
.etc.init.
ApportVersion: 2.12.1-0ubuntu3
Architecture: amd64
Date: Fri Sep 6 00:08:28 2013
InstallationDate: Installed on 2013-08-27 (9 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130827)
MarkForUpload: True
ProcKernelCmdline: BOOT_IMAGE=
SourcePackage: upstart
UpgradeStatus: No upgrade log present (probably fresh install)
UpstartBugCategory: System
modified.
modified.
mtime.conffile.
Related branches
- Dimitri John Ledkov (community): Approve
-
Diff: 327 lines (+191/-43)3 files modifiedChangeLog (+13/-0)
extra/upstart-file-bridge.c (+32/-8)
scripts/tests/test_pyupstart_session_init.py (+146/-35)
description: | updated |
summary: |
- upstart-file-bridge 'EVENT=create' not working + upstart-file-bridge 'EVENT=create' not working for directories |
Changed in upstart (Ubuntu): | |
status: | New → In Progress |
Changed in upstart (Ubuntu): | |
importance: | Undecided → Medium |
Changed in upstart (Ubuntu): | |
status: | In Progress → Fix Committed |
Hi Thibaut - Thanks for reporting this. I can recreate the problem locally so the next update should resolve this issue.