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
|
|
|
|
if test -d $i; then
|
|
|
|
ln -s $i/etc/event.d/* $out/etc/event.d/
|
|
|
|
fi
|
|
|
|
done
|
2006-12-10 23:43:04 +01:00
|
|
|
"
|