[Pkg-sysvinit-devel] Starting daemon only when cryptdisk successfully started

Compostella Jérémy jeremy.compostella at gmail.com
Tue May 10 15:46:42 UTC 2011


Hi,

I'm working on a backup server running GNU/Debian Squeeze. The
data partition is crypted using LUKS. I have successfully configured this part and
the data partition is decrypted using a key stored on a removable USB
storage device that I shall insert before powering on this machine.

The problem is that I would wish that the bacula-sd daemon does not start when cryptdisk
failed to decrypt/mount my data partition (when the removable USB
storage device isn't plugged).

I've tried to set the "Required-Start" part with "mountall" or
"cryptdisk" or "local_fs" in /etc/init.d/bacula-sd script. When I reboot
without the key plugged in, the data partition mount failed but the
bacula-sd daemon is started anyway.

I haven't found a way to do that in the documentation. I hope, you could
give me a useful documentation link or explain me how to do that.

Thanks for your help,

Jérémy
-- 
Sent from my Emacs




More information about the Pkg-sysvinit-devel mailing list