2006-11-19 21:07:45 +01:00
|
|
|
# Create an etc/event.d directory containing symlinks to the
|
|
|
|
# specified list of Upstart job files.
|
2006-12-10 23:43:04 +01:00
|
|
|
{runCommand, jobs}:
|
2006-11-19 21:07:45 +01:00
|
|
|
|
2006-12-10 23:43:04 +01:00
|
|
|
runCommand "upstart-jobs" {inherit jobs;}
|
|
|
|
"
|
2006-11-19 21:07:45 +01:00
|
|
|
ensureDir $out/etc/event.d
|
|
|
|
for i in $jobs; do
|
2009-05-18 14:59:01 +02:00
|
|
|
if ln -s $i . ; then
|
|
|
|
if test -d $i; then
|
|
|
|
ln -s $i/etc/event.d/* $out/etc/event.d/
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
echo Duplicate entry: $i;
|
|
|
|
fi;
|
2006-11-19 21:07:45 +01:00
|
|
|
done
|
2006-12-10 23:43:04 +01:00
|
|
|
"
|