Hello:
I would like to use “/etc/rc.d/rc.local” to start inSync like this:
su - jdoe -c '/usr/bin/insync-headless start'
-or like -
su - jdoe -c '/usr/bin/insync start'
Using /usr/bin/insync-headless starts the daemon process at boot-time fine, but when I optionally start the X-window manager later on and launch “insync” within it, it doesn’t attach to the already running process. Instead, it informs me that “insync” is already running, and exists.
Next, using plain /usr/bin/insync doesn’t start the daemon process at boot-time (or maybe it does, but exits because it doesn’t find an X-Window manager to start an accompanying indicator applet).
So my question …
I always want to start “insync” at boot-time, but depending on the computer, I may or may-not start an X-Window session/manager. So what startup command syntax do I use in “/etc/rc.d/rc.local” so that (1) if I choose not to start an X-Window manager, it just runs headless and (2) if I choose to start an X-Window manager, the “insync” indicator simply connects to the already running process.
Thank you!