Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Inside of /etc/rc5.d/ you will have a bunch of symbolic links that point to your services /etc/init.d/ startup scripts. The services are started in the order of the number following the S or K. (S for Start, K for Kill).
If you do an ls -al /etc/rc5.d/ you should get something similar to:
So if your startup script for gnome-ecfs is S95gnome-ecfs and your network mount is S96startupscript you would only need to remove the existing symbolic link and create a new one with a higher priority.
ln -s S94startupscript ../init.d/startupscript
Try to stay in the 90+ range for your custom startup scripts as the ones below that are usually all system processes that should start up first like network, ssh, syslog, etc.
Thank you very much for the response! I had a look in that folder and there was nothing there that looked right, but I did find it in the Gnome menu under Startup Applications.
Would the easiest solution to be something like delete that startup item in the Gnome menu and create a new startup item for a script with
Code:
#!/bin/bash
sleep 10 (Not even sure if this is a sensible amout of time to wait.)
gnome-encfs autostart (the item that is currently in the startup applications)
The reason it should not work is that each startup script is waited to finish before the next one.
If it is out of order (and it sounds like it is), just sleeping will not change the order.
Just to confirm what I mean as I feel I wasn't clear in the other post, which may make others statements still just as applicable, but I found encfs not in /etc/init.d but in "Menu -> Preferences -> Startup Applications". I'm not sure how to find the order of how those are started. I can't see any reference to them in any of the /etc/rc folders.
Last edited by NotAComputerGuy; 02-02-2014 at 01:04 PM.
Just to confirm what I mean as I feel I wasn't clear in the other post, which may make others statements still just as applicable, but I found encfs not in /etc/init.d but in "Menu -> Preferences -> Startup Applications". I'm not sure how to find the order of how those are started. I can't see any reference to them in any of the /etc/rc folders.
Well, the network mounts SHOULD be done at boot time.
The network mounts are in fstab, but I *think* because the wireless connection is handled be network manager, it won't mount to begin with, so I copied a script off the internet to /etc/network/if-up.d to mount -a.
This part all works, and I can see the folder with encrypted documents, but I have to manually use encfs to mount the decrypted folder.
You can try to disable the network device from NetworkManager, and set it to be started at boot.
Code:
...
ONBOOT=yes
...
NM_CONTROLLED=no
...
And if that doesn't work, completely disable NetworkManager and enable networks.
NetworkManager has not worked very well since Fedora 14. Every time there is something even slightly complex (I have two network interfaces plus virtual machines) it has screwed up networking.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.