How to execute a script once at startup time on CentOS 6.3? I added file with following containment
#chkconfig: 2345 95 20 #description: Some description sh /opt/somePath/my.sh
into /etc/ini.d and it works fine (I executed required
But my.sh file is compatible to run as service. And when I try to run in same way another .sh file (which can't to tun as service) I get exceptions on starting X.
So I want to know how I can run .sh files which are not services.