From: yomguy <> Date: Thu, 6 May 2010 18:43:59 +0000 (+0000) Subject: add restartd default conf files X-Git-Tag: 0.9~263 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9803738e489d5fc9bace3cfae9058173356ebf3e;p=telecaster-client.git add restartd default conf files --- 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" ""