From 989a5bbb74c3620abaa2191ce2c4f8d5968dbf0a Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 15 Sep 2009 10:40:29 +0300 Subject: Branch off from the Mailfromd project into a separate repository. --- src/pies.rcin | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/pies.rcin (limited to 'src/pies.rcin') diff --git a/src/pies.rcin b/src/pies.rcin new file mode 100644 index 0000000..85a2504 --- /dev/null +++ b/src/pies.rcin @@ -0,0 +1,31 @@ +# Sample pies configuration for running pmult and mcp + +# Special handling for exit codes that mean the program was used incorrectly +# or misconfigured. +return-code (EX_USAGE, EX_CONFIG) { + action disable; + notify "root"; + message + "From: Pies <>\n" + "X-Agent: ${canonical-program-name} (${package} ${version})\n" + "Subject: Component ${component} disabled.\n" + "\n" + "Component \"${component}\" has terminated with code ${retcode},\n" + "which means it encountered some configuration problem.\n" + "I will not restart it automatically. Please fix its configuration\n" + "and restart it manually at your earliest convenience.\n" + "\n" + "To restart, run `pies --start ${component}'\n" + "---\n" + "Wuff-wuff,\nPies"; +} + +component pmult { + command "SBINDIR/pmult"; + user meta1s; + stderr info; + stdout info; +} + +include-meta1 "/etc/meta1/meta1.conf"; + -- cgit v1.2.1