

To do that, open or create /etc/lightdm/nf file with root permissions. It will be executed once the login screen shows up. STARTMESG="\nStarting abc in deamon mode. Better approach would be to set calling uptime > /opt/BOOT.txt as part of lightdm startup script. Slow boot times could indicate system drive. # Note: (edit ABC_PATH if abc isn't installed in /opt/abc) Generally Ubuntu doesnt use swap during boot it only uses it when your physical RAM starts to fill up. # Description: This initscript starts and stops abc # EXPORT this VARS so they are accessible to children:"Įxport "PATH" "CLASSPATH" "ENV_SUPATH PATH" "ENV_PATH PATH" "Defaults secure_path" "Defaults secure_path"="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin" "ENV_PATH PATH"="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin" "ENV_SUPATH PATH"="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin"
Ubuntu startup time how to#
So, my question is: how to force the environment variables to be loaded before that my script starting abc is launched?Īny help and advice on this topic would be truly appreciated.īelow is the Danila's modified "abc" script file that I put within /etc/init.d Then, I guess that during the boot process, the script within /etc/init.d that starts abc is executed before that the different environment variables set within /etc/sudoers, /etc/environment and /etc/fs are loaded. before to start the GUI), using Java from abc still is fine, but using Go, NodeJS or Scala doesn't work anymore. However, if I put a script within /etc/init.d that starts abc during the boot process (i.e. Then, when I start abc from a terminal, all is fine and I can use any of the 4 languages described above. In order for abc to work with these languages, I've to declare the following statements:Ī) within /etc/environment: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin"ĬLASSPATH=$CLASSPATH:/usr/share/java/scala-library.jarī) within /etc/fs ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/binĮNV_PATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/binĭefaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin" I'm using a console mode program (let's say abc) that uses Go, NodeJS, Java and Scala.

Ubuntu Precise 64 bit, I'm facing a problem that I'm unable to solve and that I'll try to describe below:
