summaryrefslogtreecommitdiffstats
path: root/examples/mac_automount.pp
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-07-29 00:46:11 -0500
committerLuke Kanies <luke@madstop.com>2008-07-29 00:46:11 -0500
commit40375a8fc34dbd85d87f507ba72c7394b25b7271 (patch)
treeefd5a93980b042b73322bd31e6fdb41203d07576 /examples/mac_automount.pp
parent93eeff59d807261ed154cc104e318ae604602430 (diff)
parent8f5800f0608dff46407cb5f23ee73f314fe051e8 (diff)
downloadpuppet-40375a8fc34dbd85d87f507ba72c7394b25b7271.tar.gz
puppet-40375a8fc34dbd85d87f507ba72c7394b25b7271.tar.xz
puppet-40375a8fc34dbd85d87f507ba72c7394b25b7271.zip
Merge branch '0.24.x' into merging
Conflicts: test/ral/type/filesources.rb
Diffstat (limited to 'examples/mac_automount.pp')
-rw-r--r--examples/mac_automount.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/mac_automount.pp b/examples/mac_automount.pp
new file mode 100644
index 000000000..bab0136fc
--- /dev/null
+++ b/examples/mac_automount.pp
@@ -0,0 +1,16 @@
+#!/usr/bin/env puppet
+# Jeff McCune <mccune@math.ohio-state.edu>
+#
+# Apple's Automounter spawns a child that sends the parent
+# a SIGTERM. This makes it *very* difficult to figure out
+# if the process started correctly or not.
+#
+
+service {"automount-test":
+ provider => base,
+ hasrestart => false,
+ pattern => '/tmp/hometest',
+ start => "/usr/sbin/automount -m /tmp/home /dev/null -mnt /tmp/hometest",
+ stop => "ps auxww | grep '/tmp/hometest' | grep -v grep | awk '{print \$2}' | xargs kill",
+ ensure => running
+}