]> git.parisson.com Git - telecaster-cgi.git/commitdiff
add restartd default conf files
authoryomguy <yomguy@parisson.com>
Thu, 6 May 2010 18:43:59 +0000 (18:43 +0000)
committeryomguy <yomguy@parisson.com>
Thu, 6 May 2010 18:43:59 +0000 (18:43 +0000)
etc/restartd/restartd.conf [new file with mode: 0644]

diff --git a/etc/restartd/restartd.conf b/etc/restartd/restartd.conf
new file mode 100644 (file)
index 0000000..4773953
--- /dev/null
@@ -0,0 +1,23 @@
+# Restartd configuration file
+
+# Format:
+#
+# <process_name> <regexp> <action_if_not_running> <action_if_running>
+#
+# process_name: the name of the process which is just for logging
+# as it does not affect for the regexp
+#
+# regexp: the POSIX regular expression for the command line of the
+# process
+#
+# action_if_not_running: a script or program name to execute if the
+# regexp does not match the full process command line
+#
+# action_if_running: a script or program name to execute if the regexp
+# matches the full process command line
+
+# Example:
+#
+# restartd ".*restartd" "/bin/echo 'It is not running!' >/tmp/restartd.out" "/bin/echo 'It is running!' >/tmp/restartd.out"
+preb_jack  ".*/usr/bin/jackd"  "/etc/init.d/vncserver stop; sleep 5; su -c /home/prebarreau/bin/preb_jack prebarreau; /etc/init.d/vncserver start" ""
+#preb_jack  ".*/usr/bin/jackd"  "su -c /home/prebarreau/bin/preb_jack prebarreau" ""