From 84d5dc7a7d7e64279317af01f6f9b24185db9231 Mon Sep 17 00:00:00 2001 From: yomguy Date: Thu, 6 May 2010 18:43:59 +0000 Subject: [PATCH] add restartd default conf files --- etc/restartd/restartd.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 etc/restartd/restartd.conf diff --git a/etc/restartd/restartd.conf b/etc/restartd/restartd.conf new file mode 100644 index 0000000..4773953 --- /dev/null +++ b/etc/restartd/restartd.conf @@ -0,0 +1,23 @@ +# Restartd configuration file + +# Format: +# +# +# +# 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" "" -- 2.39.5