1.  syslog {
   2.    facility local7;
   3.  }
   4.  
   5.  return-code * {
   6.    action restart;
   7.    notify root;
   8.    message
   9.      "From: <>\n"
  10.      "X-Agent: ${canonical-program-name} (${package} ${version})\n"
  11.      "Subject: Component ${component} restarted.\n"
  12.      "\n"
  13.      "Component \"${component}\" terminated with code ${retcode} and was\n"
  14.      "restarted.\n";
  15.  }
  16.  
  17.  component mlnet {
  18.    command "/usr/local/mldonkey/mlnet";
  19.    chdir "/home/smith";
  20.    user smith;
  21.    env "- HOME=/home/smith USER=smith LOGIN=smith";
  22.    stderr info;
  23.    stdout info;
  24.  }