Hi,
I've created a script that launches checkgmail application.
Code:
~$ ls -la /etc/init.d/checkgmail.sh
-rwxr-xr-x 1 root root 250 2011-06-18 00:04 /etc/init.d/checkgmail.sh
Code:
#!/bin/sh
start()
{
EXE="/usr/bin/checkgmail"
# first we check that the program is installed in its usual place
if [ ! -e "$EXE" ]; then
exit
fi
sleep 20 && "$EXE" &
}
start
I've installed the script with the command
Code:
sudo update-rc.d checkgmail.sh defaults
After that, I reboot the system, but this script won't start. If I run the command /etc/init.d/checkgmail, the application launched. Why the script won't starts during the initialization?