2006-11-19 20:07:45 +00:00
|
|
|
# Create an etc/event.d directory containing symlinks to the
|
|
|
|
# specified list of Upstart job files.
|
2006-12-10 22:43:04 +00:00
|
|
|
{runCommand, jobs}:
|
2006-11-19 20:07:45 +00:00
|
|
|
|
2006-12-10 22:43:04 +00:00
|
|
|
runCommand "upstart-jobs" {inherit jobs;}
|
|
|
|
"
|
2006-11-19 20:07:45 +00:00
|
|
|
ensureDir $out/etc/event.d
|
|
|
|
for i in $jobs; do
|
|
|
|
if test -d $i; then
|
|
|
|
ln -s $i/etc/event.d/* $out/etc/event.d/
|
|
|
|
fi
|
|
|
|
done
|
2006-12-10 22:43:04 +00:00
|
|
|
"
|