I am working on writing a rc_script for my attempted "quassel-core" subpackage 
of quassel.

Actually, it seems that the entire port, except for the rc_script, is 
production-ready (at least to me)

So.. with that in mind, here a few questions that I can't really seem to figure 
out.

One, where is the best place to put something like
"before running the daemon, verify the existence of /path/to/file and fail with 
a specific error message"

Right now, I have it in 
rc_pre() {
  if [ ! -f /path/to/file]; then
    _rc_err "ERROR: /path/to/file not found"
    exit 1
  fi
}

It -does- exit the script, and the rc_start() command is -not- processed..  so 
I know that part is working..

However, there is no output, and the script doesn't "fail" it just quits, 
silently... 


Thanks
Chuck

Reply via email to