Forum archive
Two queries for missing volumes and startup beep
Hello All,
I am running "turnkey-fileserver-11.2-lucid-x86" on a headless (without display and input) machine acting a network file server using SAMBA. I have two queries at the moment.
1. It usually happens that I restart fileserver via the Webmin interface, however its a bit tricky sometimes to know when has it restarted and available again for operation, so as to resume any file operations again.
In FreeNAS running in a similar there is a provision of sounds or beeps using the system on-board speaker, which makes separate beep pattern when the server is available for use after a restart and again another beep pattern when the server is going down or restarting.
Can the similar be made possible in TurnKey, which would be really useful for maintenance on headless machines.
2. Secondly if I define any USB connected harddisks as filesystem mount points (which are shared via SAMBA), and for some reason the USB harddisk is disconnected when the server is restarted, then the boot-up sequence is paused near the final steps where it says to wait for the mountpoint availability or to skip or to land in a manual command prompt. Untill a keyboard is connected physically to the machine, the boot up sequence cannot complete and remains halted, which is not a very desired options again in a headless setup.
Is there a possibiilty, that the server always skips the mountpoint availability check during the startup, and later on when the USB disk is connected, the mounting can be done via the WebMin interface once the server becomes available on the network.
Thanks in advance for reading and replying.
Then the disks won't automount. You will need to mount them manually everytime though, unless of course you create a mount script to do it for you (like Gerardo suggests). Utilising inithooks (everyboot) would probably be an easy way to launch your script. I'm not sure how Samba will react if resources its trying to share aren't available but at least it won't stop your server from booting.
I like the idea of using system beeps. I can't see why you couldn't write a script to do that!? Not sure how, but I like it!
@Gerardo - I'm not sure what TKL/Ubuntu do as far as /etc/rc.d/init.d is concerned. AFAIK upstart is used for most services these days but there'd be a way to see if Samba is running for sure.